diff options
author | necoro <> | 2007-07-13 04:38:04 +0000 |
---|---|---|
committer | necoro <> | 2007-07-13 04:38:04 +0000 |
commit | 0a8d3b8add548efbc44a67c3eb1223ff94aaffc5 (patch) | |
tree | 3def310b4ee8657ae2b9356bf4ce19e240358cf6 /portato/helper.py | |
parent | fc6d232a9357211a44dad3300ff64571620aa1bf (diff) | |
download | portato-0a8d3b8add548efbc44a67c3eb1223ff94aaffc5.tar.gz portato-0a8d3b8add548efbc44a67c3eb1223ff94aaffc5.tar.bz2 portato-0a8d3b8add548efbc44a67c3eb1223ff94aaffc5.zip |
fixes
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). |