i just come out and take a bubble, haha \O^O/
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env python
|
||||
# coding: utf-8
|
||||
|
||||
#===================================================
|
||||
from constant import Constant
|
||||
from config import ConfigManager
|
||||
#---------------------------------------------------
|
||||
import logging
|
||||
import logging.config
|
||||
#===================================================
|
||||
|
||||
cm = ConfigManager()
|
||||
|
||||
logging.config.fileConfig(Constant.WECHAT_CONFIG_FILE)
|
||||
# create logger
|
||||
Log = logging.getLogger(Constant.LOGGING_LOGGER_NAME)
|
||||
|
||||
# 'application' code
|
||||
# Log.debug('debug message')
|
||||
# Log.info('info message')
|
||||
# Log.warn('warn message')
|
||||
# Log.error('error message')
|
||||
# Log.critical('critical message')
|
||||
Reference in New Issue
Block a user