aboutsummaryrefslogtreecommitdiff
path: root/logger/Logger.py
blob: 7115e471a64e16a2e0b9676213ea0eca5855f51f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import logging
import logging.config

logging.config.fileConfig("logger/loggingConfig.ini")

# create logger
screen_log = logging.getLogger("root")
main_log = logging.getLogger("smoot_light")
exception_log = logging.getLogger("exception")

#test code -- won't work unless file is imported by a file from the directory above this "logger" directory
#main_log.debug("debug mesage")
#main_log.info("info message")
#main_log.warn("warn message")
#main_log.error("error message")
#main_log.critical("critical message")
#exception_log.critical("hi")
#screen_log.error("whoa hello")