I am using Symfony2 and monolog to write in specific logs in a defined logfile (mylogfile.log):
#config_dev.yml
monolog:
handlers:
main:
type: stream
path: %kernel.logs_dir%/%kernel.environment%.log
level: debug
file:
type: stream
path: %kernel.logs_dir%/mylogfile.log
level: info
I am accessing the logfile in my controller via:
$logger = $this->get('logger'); // Log
$logger->info('somelogcontent');
Now my issue is that my log file contains the whole info level, meaning it gives me all app.INFO logs (which is what I want) and request.INFO (which I don't really need):
[2012-04-04 11:13:17] request.INFO: Matched route ... blablabla
[2012-04-04 11:13:17] app.INFO: somelogcontent
...
Is there any way not to log the Request.INFO?
Mike