summaryrefslogtreecommitdiff
path: root/portato/helper.py
diff options
context:
space:
mode:
Diffstat (limited to 'portato/helper.py')
-rw-r--r--portato/helper.py9
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).
='/portato.git/commit/doc/Changelog?h=v0.14.1&id=d93adb52cca624d132671d1c800c899ddce6a67b&follow=1'>Update changelogRené 'Necoro' Neumann1-0/+1 2009-08-10Fixed pt_BR translationAlberto Federman Neto1-2/+5 2009-08-10Add credits for translationRené 'Necoro' Neumann2-0/+2