Skip to content
Eric Mertens edited this page Oct 11, 2018 · 1 revision

glirc has basic support for channel logging. If the log-dir field is set in the configuration for a particular server, glirc will create logs using the following directory structure:

Format:

$LOGDIR/$CHANNEL/$YEAR-$MONTH-$DAY.log

Messages, notices, and actions will be logged using the following format:

[$TIME] <$SENDER> $MESSAGE
[$TIME] -$SENDER- $NOTICE
[$TIME] * $SENDER $ACTION

Example:

~/.config/glirc/config:

servers:
  * name: "fn"
    nick: "glguy"
    hostname: "chat.freenode.net"
    log-dir: "~/freenode-logs"

~/freenode-logs/#haskell/2018-01-01.log:

[15:00:23] <glguy> Hello world!