For Yii 1.1, the correct way to exclude a category is to use the except key. Priority ! in the category key according to the accepted answer will actually only lead to the corresponding categories starting with ! . Therefore, although it may work, you will really suppress all categories. See filterAllCategories() function of source code - no character handling ! , template only * : GitHub source .
I tried the approach !exception.CHttpException.404 in the accepted answer and thought that I solved the problem to hide 404 errors, but then I realized that after a lot of hair pulling this led to no logs being logged!
The correct syntax for ignoring a category is:
array( 'class' => 'CFileLogRoute', 'except' => 'exception.CHttpException.404' )
jt_uk source share