Hello,
I have some long running console script, that I want to monitor.
For that I use a configuration like this:
'log' => [
// ...
'targets' => [
[
'class' => 'yii\log\FileTarget',
// ...
],
// ...
[
'class' => 'yii\log\FileTarget',
'levels' => ['info'],
'categories' => ['foo'],
'logFile' => '@app/runtime/logs/foo.log',
],
And then I use this to log:
Yii::info($message, 'foo');
But I always have a "application" entry in my log file like this:
2015-03-16 09:25:01 [-][-][-][info][foo] test log...
2015-03-16 09:24:01 [-][-][-][info][application] $_SERVER = [ ... ]
How can I get rid of this entry? I only want the "foo" entries in this file…
Hope somebody can help me
Thanks,
Urkman