A corporation manager and dashboard for EVE Online
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 

21 行
539 B

  1. import logging
  2. __version__ = "0.1.dev0"
  3. __release__ = "0.1"
  4. baseLogger = logging.getLogger("calefaction")
  5. del logging
  6. def enable_logging():
  7. """Set up calefaction's logger to print out all logs to stderr."""
  8. import logging
  9. fmt = "%(asctime)s [%(levelname)s] %(name)s: %(message)s"
  10. datefmt = "%Y-%m-%d %H:%M:%S"
  11. formatter = logging.Formatter(fmt=fmt, datefmt=datefmt)
  12. handler = logging.StreamHandler()
  13. handler.setFormatter(formatter)
  14. baseLogger.addHandler(handler)
  15. baseLogger.setLevel(logging.DEBUG)