Skip to content
Advertisement

Tag: symfony-console

Saving command logger output to log file and console

I wrote a very simple test command which has LoggerInterface injected in its constructor. How am I suppose to change the monolog.yaml configuration to save this logger output to both log file and to output it to console? Answer The commands will always stderr by default (if you specify the -vvv option) If you need to write the logs in

Allow any option passed to Symfony CLI

The goal is to allow any options to be passed to symfony CLI, rather than limiting to a defined set of allowed options. For instance: In this example, foo is an option which is not explicitly allowed by the symfony application. My console app is proxying to a different application with a number of CLI options. I do not want

Advertisement