Yii Framework Forum: Cfilelogroute 如何能不记录404之类的错误? - Yii Framework Forum

Jump to content

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

Cfilelogroute 如何能不记录404之类的错误? Rate Topic: -----

#1 User is offline   freemylove 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 05-September 12

Posted 06 October 2012 - 03:42 AM

		'log' => array(
			'class'=>'CLogRouter',
			'routes'=>array(
				array(
					'class'=> 'CFileLogRoute',
					'levels'=> 'error, warning', //error, warning
				),
			),
		),


访问一个不存在的网址时,也会记录日志,造成日志文件太庞大,该如何定义呢 ?
2012/10/06 16:41:06 [error] [exception.CHttpException.404] exception 'CHttpException' with message '无法解析请求 "adfasdf"。'


谢谢
0

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