Output converted log level
Nerahikada opened this issue · 2 comments
Nerahikada commented
Line 212 in 32ccdc8
According to this comment, the logging level seems to be output after being converted, but the actual output is a number. Is this a bug?
lux commented
I think you're correct. The level should probably be converted to one of the strings in the PSR (https://www.php-fig.org/psr/psr-3/#5-psrlogloglevel).
lux commented
I forgot that there is a handler that converts log levels to their names, called LevelName. It acts as a filter and passes the log output along to whatever handler you tell it to from there.
Here's an example of its usage:
https://github.com/jbroadway/analog/blob/master/examples/levelname.php