Log block (UnrealIRCd 5)

The log block allows you to configure log files. You may have multiple log blocks.

If you have no log block at all then UnrealIRCd will use a default log block that only logs errors to ircd.log.

Syntax
log " " { flags { ;               ;                ...        };        maxsize ; /* OPTIONAL */ };

filename
The filename of your log " " { block specifies the name of the log file that will be used for logging.

flags
The log::flags specifies which types of information will be in this log.
 * errors: self explanatory
 * kills: logs /kill notices
 * tkl: logs info on *lines (/kline, /zline, etc), shuns and spamfilters (adding/removing/expire)
 * connects: logs user connects/disconnects
 * server-connects: logs server connects/squits
 * oper: logs oper attempts (both failed and successful)
 * sadmin-commands: logs /sa* (samode, sajoin, sapart, etc.) usage
 * chg-commands: logs /chg* (chghost, chgname, chgident, etc.) usage
 * oper-override: logs operoverride usage
 * spamfilter: logs spamfilter matches

maxsize (Optional)
maxsize is an optional directive that allows you to specify a size that the log file will be wiped and restarted (not terribly useful in it's current shape!). You can enter this string using MB for megabytes, KB, for kilobytes, GB, for gigabytes

Example
log ircd.log { flags { errors; kills; oper; tkl; }; };

log users.log { flags { connects; }; };