summaryrefslogtreecommitdiffstats
path: root/Reaktor/IRC/ircasy.py
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2014-01-14 03:44:17 +0100
committerlassulus <lassulus@googlemail.com>2014-01-14 03:44:17 +0100
commit08f47a2a7967aca55c58270f8dceb13b9f603a99 (patch)
tree1c16fb4b9a54e3af5f184443284cbff385ab4525 /Reaktor/IRC/ircasy.py
parentbc4c246294458ef8275188cbbb6697a695e3f351 (diff)
Reaktor: asybot now with name in logger
Diffstat (limited to 'Reaktor/IRC/ircasy.py')
-rw-r--r--Reaktor/IRC/ircasy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Reaktor/IRC/ircasy.py b/Reaktor/IRC/ircasy.py
index ca607f2b..aacf501a 100644
--- a/Reaktor/IRC/ircasy.py
+++ b/Reaktor/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)