mirror of
https://github.com/BlackLight/micmon.git
synced 2024-11-24 04:35:13 +01:00
Logging format
This commit is contained in:
parent
bfc8a270d0
commit
4e3a02b2cc
1 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,8 @@
|
||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
logging.basicConfig(level=logging.INFO, stream=sys.stdout)
|
logging.basicConfig(level=logging.INFO,
|
||||||
|
stream=sys.stdout,
|
||||||
|
format='[%(asctime)s] %(name)s|%(levelname)-8s|%(message)s',
|
||||||
|
datefmt='%Y-%m-%d %H:%M:%S')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue