Im looking for a log system which works with different verbosity levels and flushes to file or console immediately. I work with yii2. They Yii2 Log is good and has info, debug, warn, error levels. But I cannot get it to work realtime to flush on screen. I have tried with
flushInterval as 1 or even 0 but does not work. yii2 log methods have
application param, so I can filter what parts get logged, in case some module is buggy. Many of my cli apps never die, so logs come up only after many hours like a flood.
Maybe there is a totally diff composer package which does same thing.
Source: Ask PHP