Z
Z
zbender2014-04-10 15:29:27
Yii
zbender, 2014-04-10 15:29:27

Yii: why console command logs are not added?

When I run a console command ( php cron.php test or yiic.bat test ), nothing gets logged ( runtime/application.log file ). Logs are added from the web application normally.
The ['components']['log'] setting options in cron.php (console.php) are the same as in main.php
The YII_TRACE_LEVEL constant defined in cron.php (yiic.php) is the same as in index.php.
Neither logs automatically generated by yii, nor logs that I call myself ( Yii::log() ) are added
. What could be the matter?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
zbender, 2014-04-10
@zbender

'preload' => array('log') parameter was missing in cron.php settings

E
Eugene, 2014-04-10
@Nc_Soft

Show the console application config.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question