mlog.py 259 B

12345678910
  1. # coding: utf-8
  2. import logging
  3. import logging.config
  4. logging.config.fileConfig("../conf/logger.conf")
  5. logger = logging.getLogger("example01")
  6. logger.debug('This is debug message')
  7. logger.info('This is info message')
  8. logger.warning('This is warning message')