diff options
Diffstat (limited to 'logger/Logger.py')
-rw-r--r-- | logger/Logger.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/logger/Logger.py b/logger/Logger.py new file mode 100644 index 0000000..9c8598f --- /dev/null +++ b/logger/Logger.py @@ -0,0 +1,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") + |