A corporation manager and dashboard for EVE Online
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

21 lines
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)