Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 77877db9ae046088f483b1c631fa1f29cae1de10 1 parent 4fad49c
@samdark samdark authored
View
1  CHANGELOG
@@ -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
View
13 framework/cli/views/webapp/protected/config/console.php
@@ -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',
+ ),
+ ),
+ ),
),
);
Please sign in to comment.
Something went wrong with that request. Please try again.