logging_config.py 235 B

1234567891011
  1. # @Author : lightXu
  2. # @File : logging_config.py
  3. import logging
  4. import logging.config
  5. def getLogger(name='root'):
  6. CONF_LOG = "./segment/logging.conf"
  7. logging.config.fileConfig(CONF_LOG)
  8. return logging.getLogger(name)