ConsoleHandler

ConsoleHandler

class ConsoleHandler extends AbstractProcessingHandler implements EventSubscriberInterface

Writes logs to the console output depending on its verbosity setting.

It is disabled by default and gets activated as soon as a command is executed. Instead of listening to the console events, the output can also be set manually.

The minimum logging level at which this handler will be triggered depends on the verbosity setting of the console output. The default mapping is: - OutputInterface::VERBOSITYNORMAL will show all WARNING and higher logs - OutputInterface::VERBOSITYVERBOSE (-v) will show all NOTICE and higher logs - OutputInterface::VERBOSITYVERYVERBOSE (-vv) will show all INFO and higher logs - Output