irker history
+2.8 @ unreleased
+ Add support for --syslog.
+
2.7 @ 2014-03-15
Add support for ircs:// and SSL/TLS connections to IRC servers.
Add support for per-URL usernames and passwords.
import argparse
import logging
+import logging.handlers
import json
try: # Python 3
import queue
parser.add_argument(
'-d', '--log-level', metavar='LEVEL', choices=LOG_LEVELS,
help='file of trusted certificates for SSL/TLS')
+ parser.add_argument(
+ '--syslog', action='store_const', const=True,
+ help='log irkerd action to syslog instead of stderr')
parser.add_argument(
'-l', '--log-file', metavar='PATH',
help='file for saving captured message traffic')
help='message for --immediate mode')
args = parser.parse_args()
- handler = logging.StreamHandler()
+ if args.syslog:
+ handler = logging.handlers.SysLogHandler(
+ address='/dev/log', facility='daemon')
+ else:
+ handler = logging.StreamHandler()
LOG.addHandler(handler)
if args.log_level:
log_level = getattr(logging, args.log_level.upper())
<command>irkerd</command>
<arg>-c <replaceable>ca-file</replaceable></arg>
<arg>-d <replaceable>debuglevel</replaceable></arg>
+ <arg>--syslog</arg>
<arg>-l <replaceable>logfile</replaceable></arg>
<arg>-n <replaceable>nick</replaceable></arg>
<arg>-p <replaceable>password</replaceable></arg>
consult the source code for details.</para></listitem>
</varlistentry>
<varlistentry>
+<term>--syslog</term>
+<listitem><para>Writes debugging ouput to syslog (via /dev/log)
+instead of printing to stderr.</para></listitem>
+</varlistentry>
+<varlistentry>
<term>-l</term>
<listitem><para>Takes a following filename, logs traffic to that file.
Each log line consists of three |-separated fields; a numeric