The Cookbook tells tow to dispatch various log categories to different files:
But they put "category" option for each entry.
On the other hand I would like to log ALL to file A but one special category to file B.
Will this work as expected:
'components' => [ 'log' => [ 'targets' => [ [ 'class' => 'yii\log\FileTarget', 'logFile' => '@app/runtime/logs/A.log', ], [ 'class' => 'yii\log\FileTarget', 'categories' => ['special'], 'logFile' => '@app/runtime/logs/B.log', ], ], ...
Can you advise?