IRCCD-PLUGIN-LOGGER(7) Miscellaneous Information Manual IRCCD-PLUGIN-LOGGER(7)

logger
irccd logger plugin

The logger plugin may be used to log everything you want. It supports the following events:

The plugin logger is distributed with irccd. To enable it add the following to your plugins section:
[plugins]
logger = ""

The logger plugin has no direct commands.

The following options are available under the [plugin.logger] section:
file (string)
The path to the file where to store logs. Keywords: channel, server, (date).

The logger plugin supports the following templates in [templates.logger] section:
join
Format when someone joins a channel.
kick
Format when someone has been kicked. Keywords: reason, target.
me
Format for emote actions. Keywords: message.
message
Format for channel messages. Keywords: message.
mode
Format for user mode change. Keywords: mode, limit, user, mask.
notice
Format on private notices. Keywords: message.
part
Format when someone leaves a channel. Keywords: reason.
topic
Format when a topic is changed. Keywords: topic.

All templates support the following standard keywords: channel, nickname, origin, server.

Example of configuration file:
[plugin.logger]
file = "/var/log/irccd/#{server}/%y/%m/%d/#{channel}.txt"

[templates.logger]
join = "user #{nickname} joined #{channel}"

irccd(1), irccd-templates(7)
@IRCCD_MAN_DATE@ Linux 5.2.9-arch1-1-ARCH