2021-04-05 17:29:49 +02:00
.. _plugin-ChannelLogger:
Documentation for the ChannelLogger plugin for Supybot
======================================================
Purpose
-------
2021-12-04 02:50:28 +01:00
2021-04-05 17:29:49 +02:00
Logs each channel to its own individual logfile.
Usage
-----
2021-12-04 02:50:28 +01:00
2021-04-05 17:29:49 +02:00
This plugin allows the bot to log channel conversations to disk.
2021-04-17 20:09:33 +02:00
.. _conf-ChannelLogger:
2021-04-05 17:29:49 +02:00
Configuration
-------------
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.ChannelLogger.directories:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.ChannelLogger.directories
2021-12-04 03:19:12 +01:00
This config variable defaults to "True", is not network-specific, and is not channel-specific.
2021-04-05 17:29:49 +02:00
Determines whether the bot will partition its channel logs into separate directories based on different criteria.
2021-04-22 00:29:15 +02:00
.. _conf-supybot.plugins.ChannelLogger.directories.channel:
2021-04-17 20:09:33 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.ChannelLogger.directories.channel
2021-12-04 03:19:12 +01:00
This config variable defaults to "True", is not network-specific, and is not channel-specific.
2021-04-05 17:29:49 +02:00
Determines whether the bot will use a channel directory if using directories.
2021-04-22 00:29:15 +02:00
.. _conf-supybot.plugins.ChannelLogger.directories.network:
2021-04-17 20:09:33 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.ChannelLogger.directories.network
2021-12-04 03:19:12 +01:00
This config variable defaults to "True", is not network-specific, and is not channel-specific.
2021-04-05 17:29:49 +02:00
Determines whether the bot will use a network directory if using directories.
2021-04-22 00:29:15 +02:00
.. _conf-supybot.plugins.ChannelLogger.directories.timestamp:
2021-04-17 20:09:33 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.ChannelLogger.directories.timestamp
2021-12-04 03:19:12 +01:00
This config variable defaults to "False", is not network-specific, and is not channel-specific.
2021-04-05 17:29:49 +02:00
Determines whether the bot will use a timestamp (determined by supybot.plugins.ChannelLogger.directories.timestamp.format) if using directories.
2021-04-22 00:29:15 +02:00
.. _conf-supybot.plugins.ChannelLogger.directories.timestamp.format:
2021-04-17 20:09:33 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.ChannelLogger.directories.timestamp.format
2021-12-04 03:19:12 +01:00
This config variable defaults to "%B", is not network-specific, and is not channel-specific.
2021-04-05 17:29:49 +02:00
Determines what timestamp format will be used in the directory structure for channel logs if supybot.plugins.ChannelLogger.directories.timestamp is True.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.ChannelLogger.enable:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.ChannelLogger.enable
2021-12-04 03:19:12 +01:00
This config variable defaults to "True", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
Determines whether logging is enabled.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.ChannelLogger.filenameTimestamp:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.ChannelLogger.filenameTimestamp
2021-12-04 03:19:12 +01:00
This config variable defaults to "%Y-%m-%d", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
Determines how to represent the timestamp used for the filename in rotated logs. When this timestamp changes, the old logfiles will be closed and a new one started. The format characters for the timestamp are in the time.strftime docs at python.org. In order for your logs to be rotated, you'll also have to enable supybot.plugins.ChannelLogger.rotateLogs.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.ChannelLogger.flushImmediately:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.ChannelLogger.flushImmediately
2021-12-04 03:19:12 +01:00
This config variable defaults to "True", is not network-specific, and is not channel-specific.
2021-04-05 17:29:49 +02:00
Determines whether channel logfiles will be flushed anytime they're written to, rather than being buffered by the operating system.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.ChannelLogger.noLogPrefix:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.ChannelLogger.noLogPrefix
2021-12-04 03:19:12 +01:00
This config variable defaults to "[nolog]", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
Determines what string a message should be prefixed with in order not to be logged. If you don't want any such prefix, just set it to the empty string.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.ChannelLogger.public:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.ChannelLogger.public
2021-12-04 03:19:12 +01:00
This config variable defaults to "True", is not network-specific, and is not channel-specific.
2021-04-05 17:29:49 +02:00
Determines whether this plugin is publicly visible.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.ChannelLogger.rewriteRelayed:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.ChannelLogger.rewriteRelayed
2021-12-04 03:19:12 +01:00
This config variable defaults to "False", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
Determines whether the bot will rewrite outgoing relayed messages (eg. from the Relay plugin) to use the original nick instead of the bot's nick.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.ChannelLogger.rotateLogs:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.ChannelLogger.rotateLogs
2021-12-04 03:19:12 +01:00
This config variable defaults to "False", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
Determines whether the bot will automatically rotate the logs for this channel. The bot will rotate logs when the timestamp for the log changes. The timestamp is set according to the 'filenameTimestamp' configuration variable.
2021-12-04 02:50:28 +01:00
.. _conf-supybot.plugins.ChannelLogger.showAway:
supybot.plugins.ChannelLogger.showAway
2021-12-04 03:19:12 +01:00
This config variable defaults to "True", is network-specific, and is channel-specific.
2021-12-04 02:50:28 +01:00
Determines whether users going away and coming back should be logged. This is only supported on networks implementing the 'away-notify' IRCv3 capability.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.ChannelLogger.showJoinParts:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.ChannelLogger.showJoinParts
2021-12-04 03:19:12 +01:00
This config variable defaults to "True", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
2021-12-04 02:50:28 +01:00
Determines whether joins and parts are logged
2021-04-05 17:29:49 +02:00
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.ChannelLogger.stripFormatting:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.ChannelLogger.stripFormatting
2021-12-04 03:19:12 +01:00
This config variable defaults to "True", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
Determines whether formatting characters (such as bolding, color, etc.) are removed when writing the logs to disk.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.ChannelLogger.timestamp:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.ChannelLogger.timestamp
2021-12-04 03:19:12 +01:00
This config variable defaults to "True", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
Determines whether the logs for this channel are timestamped with the timestamp in supybot.log.timestampFormat.