Limnoria/plugins/ChannelLogger
Valentin Lorentz 63eb6672ea Revert generic 'The Limnoria Contributors' in copyright notices
This commit reverts db7ef3f02517f9f2a3c56829a22b9fad3c36e374
(though it keeps the year updates)

After discussion with several people, it seems better to mention
copyright owners explicitly. eg. https://reuse.software/faq/#vcs-copyright
explains the issue of using VCSs to track copyright.

As db7ef3f02517f9f2a3c56829a22b9fad3c36e374 only replaced mentions
of my name with 'The Limnoria Contributors', this commit only needs
to undo that + add one person who contributed to setup.py.
2021-10-17 09:57:55 +02:00
..
2020-03-26 22:10:28 +01:00
2014-12-20 14:37:27 +01:00
2021-04-22 00:29:15 +02:00

.. _plugin-ChannelLogger:

Documentation for the ChannelLogger plugin for Supybot
======================================================

Purpose
-------
Logs each channel to its own individual logfile.

Usage
-----
This plugin allows the bot to log channel conversations to disk.

.. _conf-ChannelLogger:

Configuration
-------------

.. _conf-supybot.plugins.ChannelLogger.directories:


supybot.plugins.ChannelLogger.directories
  This config variable defaults to "True", is not network-specific, and is  not channel-specific.

  Determines whether the bot will partition its channel logs into separate directories based on different criteria.

  .. _conf-supybot.plugins.ChannelLogger.directories.channel:


  supybot.plugins.ChannelLogger.directories.channel
    This config variable defaults to "True", is not network-specific, and is  not channel-specific.

    Determines whether the bot will use a channel directory if using directories.

  .. _conf-supybot.plugins.ChannelLogger.directories.network:


  supybot.plugins.ChannelLogger.directories.network
    This config variable defaults to "True", is not network-specific, and is  not channel-specific.

    Determines whether the bot will use a network directory if using directories.

  .. _conf-supybot.plugins.ChannelLogger.directories.timestamp:


  supybot.plugins.ChannelLogger.directories.timestamp
    This config variable defaults to "False", is not network-specific, and is  not channel-specific.

    Determines whether the bot will use a timestamp (determined by supybot.plugins.ChannelLogger.directories.timestamp.format) if using directories.

    .. _conf-supybot.plugins.ChannelLogger.directories.timestamp.format:


    supybot.plugins.ChannelLogger.directories.timestamp.format
      This config variable defaults to "%B", is not network-specific, and is  not channel-specific.

      Determines what timestamp format will be used in the directory structure for channel logs if supybot.plugins.ChannelLogger.directories.timestamp is True.

.. _conf-supybot.plugins.ChannelLogger.enable:


supybot.plugins.ChannelLogger.enable
  This config variable defaults to "True", is network-specific, and is  channel-specific.

  Determines whether logging is enabled.

.. _conf-supybot.plugins.ChannelLogger.filenameTimestamp:


supybot.plugins.ChannelLogger.filenameTimestamp
  This config variable defaults to "%Y-%m-%d", is network-specific, and is  channel-specific.

  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.

.. _conf-supybot.plugins.ChannelLogger.flushImmediately:


supybot.plugins.ChannelLogger.flushImmediately
  This config variable defaults to "True", is not network-specific, and is  not channel-specific.

  Determines whether channel logfiles will be flushed anytime they're written to, rather than being buffered by the operating system.

.. _conf-supybot.plugins.ChannelLogger.noLogPrefix:


supybot.plugins.ChannelLogger.noLogPrefix
  This config variable defaults to "[nolog]", is network-specific, and is  channel-specific.

  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.

.. _conf-supybot.plugins.ChannelLogger.public:


supybot.plugins.ChannelLogger.public
  This config variable defaults to "True", is not network-specific, and is  not channel-specific.

  Determines whether this plugin is publicly visible.

.. _conf-supybot.plugins.ChannelLogger.rewriteRelayed:


supybot.plugins.ChannelLogger.rewriteRelayed
  This config variable defaults to "False", is network-specific, and is  channel-specific.

  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.

.. _conf-supybot.plugins.ChannelLogger.rotateLogs:


supybot.plugins.ChannelLogger.rotateLogs
  This config variable defaults to "False", is network-specific, and is  channel-specific.

  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.

.. _conf-supybot.plugins.ChannelLogger.showJoinParts:


supybot.plugins.ChannelLogger.showJoinParts
  This config variable defaults to "True", is network-specific, and is  channel-specific.

  Determines wether joins and parts are logged

.. _conf-supybot.plugins.ChannelLogger.stripFormatting:


supybot.plugins.ChannelLogger.stripFormatting
  This config variable defaults to "True", is network-specific, and is  channel-specific.

  Determines whether formatting characters (such as bolding, color, etc.) are removed when writing the logs to disk.

.. _conf-supybot.plugins.ChannelLogger.timestamp:


supybot.plugins.ChannelLogger.timestamp
  This config variable defaults to "True", is network-specific, and is  channel-specific.

  Determines whether the logs for this channel are timestamped with the timestamp in supybot.log.timestampFormat.