Skip to content

In Symfony 3.4 how do we log deprections? #47940

Answered by Bilge
Bilge asked this question in Q&A
Discussion options

You must be logged in to vote

It seems the answer is that DebugBundle must be enabled and debug mode must also be enabled. This is all that is required for ErrorHandler to set up a PHP error handler that will capture silenced deprecation notices and forward them to the (default?) logger.

However, it is crucial to understand the difference between container compilation deprecations and runtime deprecations because only the latter can be logged to a file; the former are only displayed in the Web Developer Toolbar if, and only if, the default logger implements DebugLoggerInterface.

Replies: 1 suggested answer

Comment options

You must be logged in to vote
0 replies
Answer selected by Bilge
Category
Q&A
Labels
None yet
1 participant