Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

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

dryu opened this issue Dec 27, 2013 · 1 comment

Comments

@dryu
Copy link

@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
Copy link
Member

@qiangxue 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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.