Package SmootLight :: Package logger :: Module Logger
[hide private]
[frames] | no frames]

Source Code for Module SmootLight.logger.Logger

 1  import logging 
 2  import logging.config 
 3   
 4  logging.config.fileConfig("logger/loggingConfig.ini") 
 5   
 6  # create logger 
 7  screen_log = logging.getLogger("root") 
 8  main_log = logging.getLogger("smoot_light") 
 9  exception_log = logging.getLogger("exception") 
10   
11  #test code -- won't work unless file is imported by a file from the directory above this "logger" directory 
12  #main_log.debug("debug mesage") 
13  #main_log.info("info message") 
14  #main_log.warn("warn message") 
15  #main_log.error("error message") 
16  #main_log.critical("critical message") 
17  #exception_log.critical("hi") 
18  #screen_log.error("whoa hello") 
19