def test_logger_singleton(): log1 = Logger.getLogger() log2 = Logger.getLogger() assert log1 == log2 log1.warn("This is a warning") log1.info("This is some info") log1.severe("This is severe")
## # # Copyright 2020 - Intersect Technologies CC # Author: Niel Swart <*****@*****.**> # ## from util import Logger __version__ = "0.1.0" log = Logger.getLogger() from device_mode import CONFIG_MODE if CONFIG_MODE: import app_config as app log.info("Running app in config mode") else: import app_run as app log.info("Running app in run mode") app.main()