log: Adjust colors so warnings/errors are more visible.
This commit is contained in:
parent
1dd56e512a
commit
f1a8f91d51
@ -48,17 +48,18 @@ EXTENDED_FMT = ('{asctime:8} {levelname:8} {name:10} {module}:{funcName}:'
|
|||||||
'{lineno} {message}')
|
'{lineno} {message}')
|
||||||
SIMPLE_FMT_COLORED = '%(log_color)s%(levelname)s%(reset)s: %(message)s'
|
SIMPLE_FMT_COLORED = '%(log_color)s%(levelname)s%(reset)s: %(message)s'
|
||||||
EXTENDED_FMT_COLORED = ('%(green)s%(asctime)-8s%(reset)s %(log_color)s'
|
EXTENDED_FMT_COLORED = ('%(green)s%(asctime)-8s%(reset)s %(log_color)s'
|
||||||
'%(levelname)-8s%(reset)s %(yellow)s%(name)-10s '
|
'%(levelname)-8s%(reset)s %(cyan)s%(name)-10s '
|
||||||
'%(module)s:%(funcName)s:%(lineno)s%(reset)s '
|
'%(module)s:%(funcName)s:%(lineno)s%(reset)s '
|
||||||
'%(message)s')
|
'%(log_color)s%(message)s%(reset)s')
|
||||||
EXTENDED_FMT_HTML = ('<tr><td><pre>%(green)s%(asctime)-8s%(reset)s</pre></td>'
|
EXTENDED_FMT_HTML = ('<tr><td><pre>%(green)s%(asctime)-8s%(reset)s</pre></td>'
|
||||||
'<td><pre>%(log_color)s%(levelname)-8s%(reset)s</pre>'
|
'<td><pre>%(log_color)s%(levelname)-8s%(reset)s</pre>'
|
||||||
'</td><td></pre>%(yellow)s%(name)-10s</pre></td>'
|
'</td><td></pre>%(cyan)s%(name)-10s</pre></td>'
|
||||||
'<td><pre>%(module)s:%(funcName)s:%(lineno)s%(reset)s'
|
'<td><pre>%(module)s:%(funcName)s:%(lineno)s%(reset)s'
|
||||||
'</pre></td><td><pre>%(message)s</pre></td></tr>')
|
'</pre></td><td><pre>%(log_color)s%(message)s%(reset)s'
|
||||||
|
'</pre></td></tr>')
|
||||||
DATEFMT = '%H:%M:%S'
|
DATEFMT = '%H:%M:%S'
|
||||||
LOG_COLORS = {
|
LOG_COLORS = {
|
||||||
'DEBUG': 'cyan',
|
'DEBUG': 'white',
|
||||||
'INFO': 'green',
|
'INFO': 'green',
|
||||||
'WARNING': 'yellow',
|
'WARNING': 'yellow',
|
||||||
'ERROR': 'red',
|
'ERROR': 'red',
|
||||||
|
Loading…
Reference in New Issue
Block a user