‘log‘=>array(
‘class‘=>‘CLogRouter‘,
‘routes‘=>array(
array(
‘class‘=>‘CFileLogRoute‘,
‘levels‘=>‘error, warning‘,
),
####################调试sql可开启###################
array(
‘class‘ => ‘CWebLogRoute‘,
‘levels‘ => ‘profile,trace‘,
),
array(
‘class‘ => ‘CProfileLogRoute‘,
‘levels‘ => ‘profile‘,
),
array(
‘class‘=>‘CWebLogRoute‘,
),
),
),
原文地址:http://jinliang.blog.51cto.com/8981814/1575243