我创建了一个Console Application,但是使用日志功能系统却没有任何日志输出。请问Yii的Console App是否不能用日志功能?如果能用怎么配置?
我创建了一个Console Application,但是使用日志功能系统却没有任何日志输出。请问Yii的Console App是否不能用日志功能?如果能用怎么配置?
没法答复么?自己顶一下。
Please check and modify console.php
‘log’=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CFileLogRoute',
'levels'=>'error, warning, info, application',
),
),
),