This commit is contained in:
Richard Chien
2018-06-27 22:50:01 +08:00
parent ae2d177d5a
commit 89788474d6
8 changed files with 79 additions and 64 deletions

9
none/log.py Normal file
View File

@ -0,0 +1,9 @@
import sys
import logging
logger = logging.getLogger('none')
default_handler = logging.StreamHandler(sys.stdout)
default_handler.setFormatter(logging.Formatter(
'[%(asctime)s] %(levelname)s: %(message)s'
))
logger.addHandler(default_handler)