- Drop support for monolog < 3.0
- Remove class
Logger
, use HttpKernel'sDebugLoggerConfigurator
instead
- Add native return type to
Logger::clear()
and toDebugProcessor::clear()
- Deprecate class
Logger
, use HttpKernel'sDebugLoggerConfigurator
instead
- Add support for Monolog 3
- The
$actionLevel
constructor argument ofNotFoundActivationStrategy
has been replaced by the$inner
one which expects anActivationStrategyInterface
to decorate instead - The
$actionLevel
constructor argument ofHttpCodeActivationStrategy
has been replaced by the$inner
one which expects anActivationStrategyInterface
to decorate instead - Remove
ResetLoggersWorkerSubscriber
in favor of "reset_on_message" option in messenger configuration - Remove
SwiftMailerHandler
, useMailerHandler
instead
- Deprecate
ResetLoggersWorkerSubscriber
to reset buffered logs in messenger workers, use "reset_on_message" option in messenger configuration instead.
- Add
ResetLoggersWorkerSubscriber
to reset buffered logs in messenger workers
- The
$actionLevel
constructor argument ofSymfony\Bridge\Monolog\Handler\FingersCrossed\NotFoundActivationStrategy
has been deprecated and replaced by the$inner
one which expects an ActivationStrategyInterface to decorate instead.Symfony\Bridge\Monolog\Handler\FingersCrossed\NotFoundActivationStrategy
will become final in 6.0. - The
$actionLevel
constructor argument ofSymfony\Bridge\Monolog\Handler\FingersCrossed\HttpCodeActivationStrategy
has been deprecated and replaced by the$inner
one which expects an ActivationStrategyInterface to decorate instead.Symfony\Bridge\Monolog\Handler\FingersCrossed\HttpCodeActivationStrategy
will become final in 6.0
- Added
MailerHandler
- The methods
DebugProcessor::getLogs()
,DebugProcessor::countErrors()
,Logger::getLogs()
andLogger::countErrors()
have a new$request
argument. - Added support for Monolog 2.
- The
RouteProcessor
class has been made final - Added
ElasticsearchLogstashHandler
- Added the
ServerLogCommand
. Backport from the deprecated WebServerBundle
- added
ConsoleCommandProcessor
: monolog processor that adds command name and arguments - added
RouteProcessor
: monolog processor that adds route name, controller::action and route params
- The methods
DebugProcessor::getLogs()
,DebugProcessor::countErrors()
,Logger::getLogs()
andLogger::countErrors()
will have a new$request
argument in version 5.0, not defining it is deprecated
WebProcessor
now implementsEventSubscriberInterface
in order to be easily autoconfigured
- the
$format
,$dateFormat
,$allowInlineLineBreaks
, and$ignoreEmptyContextAndExtra
constructor arguments of theConsoleFormatter
class have been removed, use$options
instead - the
DebugHandler
class has been removed
- Improved the console handler output formatting by adding var-dumper support
- deprecated interface
Symfony\Component\HttpKernel\Log\LoggerInterface
has been removed - deprecated methods
Logger::crit()
,Logger::emerg()
,Logger::err()
andLogger::warn()
have been removed
- added ConsoleHandler and ConsoleFormatter which can be used to show log messages in the console output depending on the verbosity settings
- added ChromePhpHandler