You see, there're trace, debug, info, warn, error and fetal.
But if I want custom a new message type and color, how should I do?
for example, I want have a "success" with green color or I want have a "foo" with bar color.
The pattern layout may be of use to you, if you want to format log messages. But you would still have to use the standard log functions.
Emmm, I mean that,
maybe, in next version, will it have some function like:
I see what you mean. User-defined log levels could be possible. I'm happy to accept pull requests for this if anyone feels like implementing it, otherwise I'll add it to the list of things for me to do.
Thx~ And if possible, i will try to if my ability allows
This is another version of #254 - a feature I'll add in version 2.x