diff options
author | makefu <github@syntax-fehler.de> | 2011-09-14 23:42:09 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2011-09-14 23:42:09 +0200 |
commit | e325a597a3ecc2a267bb904a36952ea2032b8ad4 (patch) | |
tree | 47e513476080b291a6955de32f4013e7f4334734 /Reaktor/IRC/asybot.py | |
parent | 7c006192b5990176acdd546065105d53fe59b908 (diff) | |
parent | cd9ad4429884c4418bac04265881c118191ade50 (diff) |
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'Reaktor/IRC/asybot.py')
-rwxr-xr-x | Reaktor/IRC/asybot.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Reaktor/IRC/asybot.py b/Reaktor/IRC/asybot.py index 9021d22f..99cb2fe6 100755 --- a/Reaktor/IRC/asybot.py +++ b/Reaktor/IRC/asybot.py @@ -15,8 +15,12 @@ from datetime import datetime as date, timedelta from sys import exit from re import split, search -import logging -log = logging.getLogger() +import logging,logging.handlers +log = logging.getLogger('asybot') +hdlr = logging.handlers.SysLogHandler(facility=logging.handlers.SysLogHandler.LOG_DAEMON) +formatter = logging.Formatter( '%(filename)s: %(levelname)s: %(message)s') +hdlr.setFormatter(formatter) +log.addHandler(hdlr) class asybot(asychat): def __init__(self, server, port, nickname, targets, **kwargs): |