Use blue color for info messages

This commit is contained in:
Piotr Dobrowolski 2017-10-18 14:12:11 +02:00
parent 46f3493be9
commit 85e7e69764

1
vm.py
View File

@ -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)