diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2008-09-15 15:34:21 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2008-09-15 15:34:21 +0200 |
commit | 2a91802cafc270c0102cfd94a44d6831f65cb97a (patch) | |
tree | b22d1f3d3f37772e42ce262c377cb8341660df07 /portato/helper.py | |
parent | adc195c45f67bb3da1b1e37fe6284a72c74f5c9d (diff) | |
download | portato-2a91802cafc270c0102cfd94a44d6831f65cb97a.tar.gz portato-2a91802cafc270c0102cfd94a44d6831f65cb97a.tar.bz2 portato-2a91802cafc270c0102cfd94a44d6831f65cb97a.zip |
Add a log-file
Diffstat (limited to '')
-rw-r--r-- | portato/helper.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/portato/helper.py b/portato/helper.py index 2363adb..8a312c0 100644 --- a/portato/helper.py +++ b/portato/helper.py @@ -17,17 +17,17 @@ from __future__ import absolute_import import os, signal, logging, grp -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 +debug = logging.getLogger("portatoLogger.stream").debug +info = logging.getLogger("portatoLogger.stream").info +warning = logging.getLogger("portatoLogger.stream").warning +error = logging.getLogger("portatoLogger.stream").error +critical = logging.getLogger("portatoLogger.stream").critical def N_ (s): return s def set_log_level (lvl): - logging.getLogger("portatoLogger").setLevel(lvl) + logging.getLogger("portatoLogger.stream").setLevel(lvl) def send_signal_to_group (sig): """Sends a signal to all processes of our process group (w/o ourselves). |