The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Infobot::Log - Log multiplexer

SYNOPSIS

 Infobot::Log->register( YourLoggingModule->new() );
 
 Infobot::Base->Log( 5, 'whatever' );

Log levels

 0. Fatal errors
 1. Critical errors
 2. Non-critical warnings and complaints
 3. Plugin tick over - any plugins that are hit say they're hit 
 4. 
 5. All messages incoming - whether addressed or not - [default]
 6. Plugin important - plugins describe what they're doing
 7. Plugin detailed - plugins describe in detail what they're doing 
 8. All incoming events - _default et al
 9. All possible information

METHODS

init

Makes sure we have a holder for our log objects to go in

register

Add a new log object to our multiplex

write

Write a line to our log objects. This should almost always be called via Infobot::Base->log.