了解知识
 
  1. 'components'=>array( 
  2.         'errorHandler'=>array( 
  3.         // use 'site/error' action to display errors 
  4.                 'errorAction'=>'site/error'
  5.                 ), 
  6.         'log'=>array( 
  7.                 'class'=>'CLogRouter'
  8.                 'routes'=>array( 
  9.                         array( 
  10.                                 'class'=>'CFileLogRoute'
  11.                                 'levels'=>'error, warning'
  12.                         ), 
  13.                         // 下面显示页面日志 
  14.                         array( 
  15.                                 'class'=>'CWebLogRoute'
  16.                                 'levels'=>'trace',     //级别为trace 
  17.                                 'categories'=>'system.db.*' //只显示关于数据库信息,包括数据库连接,数据库执行语句 
  18.                         ), 
  19.                 ), 
  20.         ), 
  21. ), 
标签: Yii框架
扩展知识