diff options
author | tv <tv@iiso> | 2011-09-14 21:48:09 +0200 |
---|---|---|
committer | tv <tv@iiso> | 2011-09-14 21:48:09 +0200 |
commit | 78956919e236d25b1d919cb975fff5e92a025eb7 (patch) | |
tree | af3128df02b138a527b5f4237b872a193ce54d40 /Reaktor/IRC/asybot.py | |
parent | 1e9f32bf57ab45ff1d3a61294e323b9c0cd3309b (diff) | |
parent | 04af55a06ba25e669a705b3c32a16e91fac05125 (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): |