diff options
Diffstat (limited to 'portato/helper.py')
-rw-r--r-- | portato/helper.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/portato/helper.py b/portato/helper.py index f25fa34..d7a5366 100644 --- a/portato/helper.py +++ b/portato/helper.py @@ -15,10 +15,15 @@ Some nice functions used in the program. """ import types, os, signal, logging -from logging import debug, info, warning, error, critical, exception + +debug = logging.getLogger("portatoLogger").debug +info = logging.getLogger("portatoLogger").info +warning = logging.getLogger("portatoLogger").warning +error = logging.getLogger("portatoLogger").error +critical = logging.getLogger("portatoLogger").critical def set_log_level (lvl): - logging.getLogger().setLevel(lvl) + logging.getLogger("portatoLogger").setLevel(lvl) def send_signal_to_group (sig): """Sends a signal to all processes of our process group (w/o ourselves). |