How to set needs categories in logs and write in file?
How to understand how to create categories in CFileLogRoute?
For example. I need to keep logs (sql queries, Yii::log/Yii::trace, Yii::beginProfile/Yii::endProfile) by my some widget (MyWidget) and some extation (MyExt) and writ ONLY it in file.
I set:
array(
'class'=>'CFileLogRoute',
'logFile'=>'mywidget.log',
'categories'=>'application.widgets.mywidget'
),
array(
'class'=>'CFileLogRoute',
'logFile'=>'myext.log',
'categories'=>'application.ext.myext'
),
I run widget and ext but it not work.
I want to understand how set catigories. On docs I can not find this informations.
Tnx