M
M
Mishko_kun2015-10-12 11:40:06
Yii
Mishko_kun, 2015-10-12 11:40:06

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

1 answer(s)
M
matperez, 2015-10-16
@Mishko_kun

https://github.com/pahanini/yii2-consolelog

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question