Answer the question
In order to leave comments, you need to log in
How to output yii2 logs to console on execution?
Yii2 allows you to do logging using the Yii::trace, Yii::error methods. In the config, you can configure what to do with this stuff: put it in files or send it by mail. So, in some cases, you need to run a console application on a remote computer and see how it works without any debugs. Therefore, I want that when specifying the magic word in the config, all logs are sent immediately to the console, at the moment the method is called. I don't want to write bicycles, that's why I asked.
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