IRC::Indexer::Logger - Simple interface to Log::Handler
my $handler = IRC::Indexer::Logger->new( ## Path to output file: LogFile => $logfile_path, ## Typically 'debug', 'info', 'warn': LogLevel => 'info', ## Enable DevNull to set up loggers yourself later ## (Useful for only logging to STDOUT for example) DevNull => 0, ); ## Switch to a different file: $handler->log_to($new_logfile); ## Access the actual logger: my $logger = $handler->logger; ## Log things: $logger->info("Something informative"); $logger->warn("Something went wrong!"); $logger->debug("Things are happening.");
Simplified construction of Log::Handler instances for IRC::Indexer frontends.
See the SYNOPSIS for usage details and Log::Handler for more about using the log object itself.
Jon Portnoy <avenj@cobaltirc.org>
To install IRC::Indexer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IRC::Indexer
CPAN shell
perl -MCPAN -e shell install IRC::Indexer
For more information on module installation, please visit the detailed CPAN module installation guide.