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

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>