diff options
author | lassulus <lassulus@googlemail.com> | 2014-01-14 03:44:17 +0100 |
---|---|---|
committer | lassulus <lassulus@googlemail.com> | 2014-01-14 03:44:17 +0100 |
commit | 92fd973cd337e64bce31a6423ca989846b336904 (patch) | |
tree | c6f9d98500745487daa3f7505e5f698e68edb444 /IRC | |
parent | 5465ea3a6af4ea88dcfa3d15ca241705c82c041a (diff) |
Reaktor: asybot now with name in logger
Diffstat (limited to 'IRC')
-rw-r--r-- | IRC/ircasy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IRC/ircasy.py b/IRC/ircasy.py index ca607f2..aacf501 100644 --- a/IRC/ircasy.py +++ b/IRC/ircasy.py @@ -21,7 +21,7 @@ class asybot(asychat): def __init__(self, server, port, nickname, channels, realname=False, username=False, hostname=False, hammer_interval=10, alarm_timeout=300, kill_timeout=360, loglevel=logging.ERROR): asychat.__init__(self) #logger magic - self.log = logging.getLogger('asybot') + self.log = logging.getLogger('asybot_' + nickname) hdlr = logging.handlers.SysLogHandler(facility=logging.handlers.SysLogHandler.LOG_DAEMON) formatter = logging.Formatter( '%(filename)s: %(levelname)s: %(message)s') hdlr.setFormatter(formatter) |