Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question