View on
MetaCPAN
Andreas Faafeng > Parse-Dia-SQL > Parse::Dia::SQL::Logger

Download:
Parse-Dia-SQL-0.30.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  3
Open  1
View/Report Bugs
Source  

NAME ^

Parse::Dia::SQL::Logger - Wrapper for Log::Log4perl

SYNOPSIS ^

    use Parse::Dia::SQL::Logger;
    my $logger = Parse::Dia::SQL::Logger::->new(loglevel => 'INFO');
    my $log = $logger->get_logger(__PACKAGE__);
    $log->error('error');
    $log->info('info');

DESCRIPTION ^

This module is a wrapper around Log::Log4perl.

new

The constructor.

get_logger

  Return logger singleton object.

log_off

Decrease log level on all appenders. 1

log_on

Increase log level on all appenders.

syntax highlighting: