ModuleDocumentation/whatbot/Log.pm

NAME

whatbot::Log - Provides logging from within whatbot

SYNOPSIS

 extends 'whatbot::Component';
 
 $self->log->write('This is a message.');
 $self->log->error('This is an error!');

DESCRIPTION

whatbot::Log provides basic log functionality from within whatbot. whatbot loads this class during startup, and is available under the 'log' accessor in any module subclassed from whatbot::Component and loaded properly, including Commands.

METHODS

write( $line )
Writes message to standard out / log file.
error( $line )
Writes message to standard out / log file and 'die's to STDERR.

INHERITANCE

LICENSE/COPYRIGHT

Be excellent to each other and party on, dudes.