如何设置Yii配置文件-CProfileLogRoute和CWebLogRoute问题
以下是我的信息: 请查看我的dev机器配置文件中的日志组件:如何设置Yii配置文件-CProfileLogRoute和CWebLogRoute问题,yii,Yii,以下是我的信息: 请查看我的dev机器配置文件中的日志组件: 'log'=>array( 'class'=>'CLogRouter', 'routes'=>array( array( 'class'=>'CProfileLogRoute', 'levels'=>'error, warning, trace, in
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CProfileLogRoute',
'levels'=>'error, warning, trace, info, profile',
),
array(
'class'=>'CWebLogRoute',
'levels'=>'error, warning, trace, info, profile',
'showInFireBug'=>true,
),
),
仅当我们在应用程序代码中放置类似的内容时,使用CProfileLogRoute才有任何用处:
Yii::beginProfile('blockID');
...code block being profiled...
Yii::endProfile('blockID');
(一)
如果唯一的目的是测量速度,那么这些级别是什么
'错误、警告、跟踪、信息、私人'
在这种情况下,你的意思是什么
提前多谢了,
MEM看起来像是CLogRoute(父类)的残余,在代码中未使用: 我倾向于设置的唯一变量是“report”:
谢谢。这是有道理的。我将删除所有其他的,并有唯一的报告,以及那里。或者更好的是,完全不要声明。只保留类定义。