Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Proposal: Yii2 should use PSR-3 compliant logger class #1660
I don't know how you guys went all that way without a PSR-3 logger. I'm missing features like 9 logger levels and auto-rotating log files by date.
Tracing is different to Logging by nature, and having a "trace" level logging is kind of confusing. Tracing supposed to be all about the flow - it is a way more verbose level of logging, showing ins and outs to each method, that kind of stuff.
Nope, we don't have plan to adopt PSR-3.
PSR-3 lacks the important category dimension. It also defines too many log levels, which would cause confusion in practice because some levels are really hard to tell from others.
Combining log categories, levels and filtering, Yii's logging system is sufficient for most uses (at least through the past many years, people are not complaining lack of log levels).
Yii has auto-rotating file logs based on log count, not by date. The latter can be developed and plugged in if needed.
Well, it's hard to draw this conclusion. I also don't see any Yii user complaining about this confusion.