console.php 622 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. // This is the configuration for yiic console application.
  3. // Any writable CConsoleApplication properties can be configured here.
  4. return array(
  5. 'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
  6. 'name'=>'My Console Application',
  7. // preloading 'log' component
  8. 'preload'=>array('log'),
  9. // application components
  10. 'components'=>array(
  11. // database settings are configured in database.php
  12. 'db'=>require(dirname(__FILE__).'/database.php'),
  13. 'log'=>array(
  14. 'class'=>'CLogRouter',
  15. 'routes'=>array(
  16. array(
  17. 'class'=>'CFileLogRoute',
  18. 'levels'=>'error, warning',
  19. ),
  20. ),
  21. ),
  22. ),
  23. );