Proposal: Yii2 should use PSR-3 compliant logger class #1660

Closed
dryu opened this Issue Dec 27, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@dryu

dryu commented Dec 27, 2013

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.

@qiangxue

This comment has been minimized.

Show comment
Hide comment
@qiangxue

qiangxue Dec 27, 2013

Member

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.

Tracing is different to Logging by nature, and having a "trace" level logging is kind of confusing...

Well, it's hard to draw this conclusion. I also don't see any Yii user complaining about this confusion.

Member

qiangxue commented Dec 27, 2013

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.

Tracing is different to Logging by nature, and having a "trace" level logging is kind of confusing...

Well, it's hard to draw this conclusion. I also don't see any Yii user complaining about this confusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment