-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[BUG]: Logger variable %type% not in uppercase #15375
Comments
Same here. |
@kowach @wurst-hans Can you guys have a look at this PR? Maybe I am setting the test wrong but that is how I understood it from your description. Any pointers welcome. Thanks! |
Sorry, don't understand much of testing, but as I see in your PR, the test expects |
I was trying to replicate the error you posted
I thought that the If it is the uppercase that is the issue, we can certainly change the docs (easiest) or change the code. I don't mind doing either. @Jeckerson thoughts? |
This isn't a showstopper for me and isn't worth it to overwrite protected |
In case anyone is wondering. I remember why this was changed: https://github.com/php-fig/log/blob/master/Psr/Log/LogLevel.php#L10 PSR has everything lowercase. We will change it to upper to keep with 3.4. Maybe put an option in to have them up or down or something |
Thanks for clarification. No problem if PSR requires it to be lowercase. But then it makes no sense do switch back to uppercase, doesn't it? |
PSR does not "require" it I think so long as you can identify what the level is - uppercase or lowercase. I checked Monolog and they print out their levels in uppercase. I will change it to the way 3.4 was (uppercase). Also since I will have the PR ready shortly |
This has been resolved for v5 |
Using Phalcon v4.1.0 I've set following format for logger
[%date%] [%type%] %message%
but this results in:I expect, that type of message is written in uppercase.
The text was updated successfully, but these errors were encountered: