Use blue color for info messages
This commit is contained in:
1 parent
46f3493be9
commit
85e7e69764
1 file changed
+1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user