Use blue color for info messages
This commit is contained in:
parent
46f3493be9
commit
85e7e69764
1
vm.py
1
vm.py
@ -23,6 +23,7 @@ logdatefmt = '%Y-%m-%d %H:%M:%S'
|
||||
loglevel = logging.INFO
|
||||
try:
|
||||
import coloredlogs
|
||||
coloredlogs.DEFAULT_LEVEL_STYLES['info'] = {'color': 'blue'}
|
||||
coloredlogs.install(level=loglevel, fmt=logformat, datefmt=logdatefmt)
|
||||
except:
|
||||
logging.basicConfig(level=loglevel, format=logformat, datefmt=logdatefmt)
|
||||
|
Loading…
x
Reference in New Issue
Block a user