Permalink
Browse files

Chg #497: Added log component and preloaded it in default console app…

…lication config in order to properly log errors
  • Loading branch information...
samdark committed May 1, 2012
1 parent 4fad49c commit 77877db9ae046088f483b1c631fa1f29cae1de10
Showing with 14 additions and 0 deletions.
  1. +1 −0 CHANGELOG
  2. +13 −0 framework/cli/views/webapp/protected/config/console.php
View
@@ -45,6 +45,7 @@ Version 1.1.11 work in progress
- Enh: Added HTML5 history support on ajax requests on CGridView and CListView using History.js v1.7.2-r2 (https://github.com/balupton/history.js) from Benjamin Arthur Lupton (lightglitch)
- Enh: Changed CldrCommand to use medium dateTimeFormat and updated 18n data using newest(6546) CLDR (tanakahisateru)
- Chg #440: Upgraded JQuery UI to 1.8.19 (samdark)
+- Chg #497: Added log component and preloaded it in default console application config in order to properly log errors (samdark)
- Chg: Upgraded jQuery to 1.7.2 (samdark)
Version 1.1.10 February 12, 2012
@@ -5,6 +5,10 @@
return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'My Console Application',
+
+ // preloading 'log' component
+ 'preload'=>array('log'),
+
// application components
'components'=>array(
'db'=>array(
@@ -20,5 +24,14 @@
'charset' => 'utf8',
),
*/
+ 'log'=>array(
+ 'class'=>'CLogRouter',
+ 'routes'=>array(
+ array(
+ 'class'=>'CFileLogRoute',
+ 'levels'=>'error, warning',
+ ),
+ ),
+ ),
),
);

0 comments on commit 77877db

Please sign in to comment.