如何开启YII系统默认的DEBUG
1个回答
展开全部
配置main.php的DB配置加入
[html] view plain copy
'enableProfiling'=>YII_DEBUG,
'enableParamLogging'=>YII_DEBUG,
再将
[html] view plain copy
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CFileLogRoute',
'levels'=>'error, warning',
),
// uncomment the following to show log messages on web pages
/*
array(
'class'=>'CWebLogRoute',
),
[html] view plain copy
'enableProfiling'=>YII_DEBUG,
'enableParamLogging'=>YII_DEBUG,
再将
[html] view plain copy
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CFileLogRoute',
'levels'=>'error, warning',
),
// uncomment the following to show log messages on web pages
/*
array(
'class'=>'CWebLogRoute',
),
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询