++ed by:
JNBEK

1 PAUSE user(s)

Jon Portnoy

NAME

IRC::Indexer::Logger - Simple interface to Log::Handler

SYNOPSIS

  my $handler = IRC::Indexer::Logger->new(
    ## Path to output file:
    LogFile  => $logfile_path,

    ## Typically 'debug', 'info', 'warn':
    LogLevel => 'info',
  );

  ## 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.");
  

DESCRIPTION

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.

AUTHOR

Jon Portnoy <avenj@cobaltirc.org>