dirname(__FILE__).DIRECTORY_SEPARATOR.'..', 'name'=>'My Console Application', // preloading 'log' component 'preload'=>array('log'), // application components 'components'=>array( // database settings are configured in database.php 'db'=>require(dirname(__FILE__).'/database.php'), 'log'=>array( 'class'=>'CLogRouter', 'routes'=>array( array( 'class'=>'CFileLogRoute', 'levels'=>'error, warning', ), ), ), ), );