Yii Framework Forum: CLogRoute exclude categories - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

CLogRoute exclude categories Rate Topic: -----

#1 User is offline   pavlepredic 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 39
  • Joined: 30-August 11

Posted 14 May 2012 - 09:37 AM

When specifying categories for a log route, it would be nice if one could exclude certain categories. For example:

'categories' => 'exception.*, !exception.CHttpException',


This would log all exceptions except CHttpException.
0

#2 User is offline   pavlepredic 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 39
  • Joined: 30-August 11

Posted 29 March 2013 - 04:46 AM

In case anyone else needs this, it has been implemented in 1.1.13 by means of CLogRoute::except property.
1

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users