Colors for extra levels #12
Comments
Hi, Re 1) What do you mean with all INFO levels (11-20)? Can you provide some sample code? For me if I setup the logger with a loglevel of 15 it will print all INFO messages. And INFO messages are always green. Re 2) This is an error on logzero side. It should not write the color codes to the logfile too. I'll fix it and report back to this thread. |
Re 2 - Just released v1.1.1 which fixed this issue: 68323d9 |
I have cut out this - see that levl 19 is not green
|
Thanks for the example. I will look into this and report back here. |
These are the available foreground colors: BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE. Does that work for your workflow, or would you rather have a more simple API to accomplish this? |
logzero was updated to v1.3.0 today, and supports color output on Windows with colorama. For this update the color definitions changed a little, now you would specify the custom color like this:
Before it was
I've updated the code in my last comment. |
Hi, it is nice. And yes, it is really important to say, that
logging
is behind. My questions:1/ how is it possible to have green color for all INFO levels (11-20)?
2/ Colors are also in a logfile, would it be possible to have colors on the screen but not in the file (for later parsing)?
The text was updated successfully, but these errors were encountered: