Andrew Sterling Hanenkamp > Bot-Net > Bot::Net::Log

Download:
Bot-Net-0.1.0.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View Bugs
Report a bug
Source  

NAME ^

Bot::Net::Log - logger for your bot net

SYNOPSIS ^

  Bot::Net->log->debug("Debug message.");
  Bot::Net->log->info("Info message.");
  Bot::Net->log->warn("Warning message.");
  Bot::Net->log->error("Error message.");
  Bot::Net->log->fatal("Fatal message.");

DESCRIPTION

The provides a logger using the Log::Log4perl facility, which has excellent configuration features. The configuration for your bot net is generally found in etc/log4perl.conf.

METHODS ^

new

Creates the logger. In general, you never need to call this. Use this instead:

  my $log = Bot::Net->log;

get_logger NAME

Returns the named logger. In general, you never need to call this. Use this instead:

  my $log = Bot::Net->log;

or:

  my $log = Bot::Net->log('MyBotNet::Bot::CopyBot');

AUTHORS ^

Andrew Sterling Hanenkamp <hanenkamp@cpan.org>

COPYRIGHT AND LICENSE ^

Copyright 2007 Boomer Consulting, Inc. All Rights Reserved.

This program is free software and may be modified and distributed under the same terms as Perl itself.