A corporation manager and dashboard for EVE Online
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 

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