I created a custom command. I want to log with monolog the command tapped by user with arguments and options
For exemple: php bin/console app:my_command argument1 --option=1234
Now I have that :
$this->log->error('error on command', array(
'command_tapped_by_user' => '????',
'command' => $this->getName(),
'arguments' => $input->getArguments(),
'options' => $input->getOptions(),
'exception' => $e->getMessage()
));
Thank you