how to configure colors with configuration file #122
Answered
by
borntyping
brahim-ouali
asked this question in
Support
-
Hello I tried something like that: [formatter_long]
format=%(log_color)s%(levelname)s:%(name)s:%(message)s
datefmt=
class=colorlog.ColoredFormatter
log_colors={'DEBUG': 'blue', 'INFO': 'green', 'WARNING': 'yellow', 'ERROR': 'red', 'CRITICAL': 'bold_red'} but it's not working, how can I do to configure colors in the ini file? Thank you |
Beta Was this translation helpful? Give feedback.
Answered by
borntyping
Aug 21, 2022
Replies: 1 comment
-
This is not possible using the ini file approach – Python's ConfigParser format does not support dictionaries as values. https://docs.python.org/3/library/configparser.html#supported-ini-file-structure |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
borntyping
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is not possible using the ini file approach – Python's ConfigParser format does not support dictionaries as values.
https://docs.python.org/3/library/configparser.html#supported-ini-file-structure