I'm using Silex 1.1 and Monolog 1.0.0. My code and my problem:
$app->register(new Silex\Provider\MonologServiceProvider(), array(
'monolog.name' => 'myname',
'monolog.logfile' => ROOT . '/logs/log.txt',
'monolog.level' => Monolog\Logger::INFO
));
. . .
$app['monolog']->addInfo('xxx');
Everything works fine, but I get default messages like these:
[2013-12-13 00:20:56] myname.INFO: Matched route "GET_api_v1_predictions" (parameters: "_controller": "predictions.controller:index", "_route": "GET_api_v1_predictions") [] []
[2013-12-13 00:20:56] myname.INFO: > GET /api/v1/predictions [] []
How I can disable them? (If I change the logging level to WARNING and use addWarning then just my messages are displayed, but I want to use the INFO level).
You can still create a logger for your application which is not used by other processes: