douciwang6819 2015-07-06 09:10
浏览 29
已采纳

隐藏Yii应用程序日志(显示查询等..) - Yii 1.x.

I am doing some work on a Yii 1.x project and would like to hide the 'Application Log' that appears at the bottom of the page with queries and other debugger stuff within it..

I have commented out the following 'log' array (in the components array) within my mode_gk.php file that I can see it relates to but it still shows all the logging? Can anyone suggest what I am missing?

        'log'=>array(
            'class'=>'CLogRouter',
            'routes'=>array(
                'web'=>array(
                    'class'=>'CWebLogRoute',
                    'levels'=>'trace, info, error, warning, application',
                    'categories'=>'system.db.*',
                    'showInFireBug'=>false
                ),
                'file'=>array(
                    'class'=>'CFileLogRoute',
                    'levels'=>'error, warning, watch',
                    'categories'=>'system.*',
                ),
            ),
        ),
  • 写回答

1条回答 默认 最新

  • dsen53898 2016-01-11 10:33
    关注

    Commented out the 'web' array as stated.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 易康econgnition精度验证
  • ¥15 线程问题判断多次进入
  • ¥15 msix packaging tool打包问题
  • ¥28 微信小程序开发页面布局没问题,真机调试的时候页面布局就乱了
  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致