24 lines
615 B
Python
24 lines
615 B
Python
#!/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')
|