File Logger Module

From Botnix

Overview

The file logger module, modules/log/file.pm, allows logging to logfiles on a per network or per channel basis.

Configuration

If you define a log file for a channel, then this logfile captures all log output targetted at this channel. Use the timestamps directive if you want timestamps in your logs. This applies only to the current channel/network context.


channel "#foo" {
               logfile "../botnix.log"
               timestamps "yes"
}

You must also define a log outside of all network/channel contexts, to capture any log output which is not directed to a channel or network, using the same syntax as above but outside of channel and network blocks.

Commands

This module implements no commands.