"new"
Arguments:
'Path', the place where you want the logs saved.
'Private', whether or not to log private messages. Defaults to 1.
'Public', whether or not to log public messages. Defaults to 1.
'DCC', whether or not to log DCC chats. Defaults to 1.
'Notices', whether or not to log NOTICEs. Defaults to 0.
'Sort_by_date', whether or not to split log files by date, i.e. #channel/YYYY-MM-DD.log instead of
#channel.log. If enabled, the date will be omitted from the timestamp. Defaults to 0.
'Strip_color', whether or not to strip all color codes from messages. Defaults to 0.
'Strip_formatting', whether or not to strip all formatting codes from messages. Defaults to 0.
'Restricted', set this to 1 if you want all directories/files to be created without read permissions for
other users (i.e. 700 for dirs and 600 for files). Defaults to 1.
'Format', a hash reference representing the log format, if you want to define your own. See the source
for details.
'Log_sub', a subroutine reference which can be used to override the file logging. Use this if you want to
store logs in a database instead, for example. It will be called with 3 arguments: the context (a channel
name or nickname), a type (e.g. 'privmsg' or '+b', and any arguments to that type. You can make use
"default_format" to create logs that match the default log format. Note: You must take care of handling
date/time and stripping colors/formatting codes yourself.
Returns a plugin object suitable for feeding to POE::Component::IRC's "plugin_add" method.
"default_format"
Returns a hash reference of type/subroutine pairs, for formatting logs according to the default log
format.