You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated from 2.0.0-alpha8 to 2.0.0-alpha12 (it was present in 2.0.0-alpha10).
Steps to reproduce
In a symfony 3.4 application I'm testing a command that receives a LoggerInterface with DI (it is a monolog logger handler with type console - https://symfony.com/doc/current/logging/monolog_console.html).
Via Monolog Bridge logs are sent to OutputInterface.
Handler is configured in this way:
qworker:
type: console
level: info
channels: ['qworker']
formatter: monolog.formatter.line
verbosity_levels:
VERBOSITY_NORMAL: info
After some debug, it seems that the consoleHandler has $output setted to null instead of \Symfony\Component\Console\Output\StreamOutput with this version.
I'm sorry, too much time has passed and my memory is very limited.
In the meanwhile, my colleagues did upgrade to Symfony 5 and I don't know if the bug was still present.
Anyway, I'm on SF5, too and the problem is still there.
Maybe, if you can, you could ask one of your colleagues, asking him/her how did (s)he solved the issue... It would be very helpful... But if you can't, don't worry :)
Preconditions
Updated from 2.0.0-alpha8 to 2.0.0-alpha12 (it was present in 2.0.0-alpha10).
Steps to reproduce
In a symfony 3.4 application I'm testing a command that receives a LoggerInterface with DI (it is a monolog logger handler with type console - https://symfony.com/doc/current/logging/monolog_console.html).
Via Monolog Bridge logs are sent to OutputInterface.
Handler is configured in this way:
In previous version I was testing in this way:
Expected result
Actual result
In latest version (2.0.0-alpha-12) I have changed my code to this:
But the $output var now contains an empty string instead of the logged value.
In my integration test the output is always the same.
The text was updated successfully, but these errors were encountered: