NAME

DBIx::QueryByName::Logger - Take care of all logging

SYNOPSIS

use DBIx::QueryByName::Logger qw(get_logger);
my $log = get_logger();

$log->logcroak('something went bad');

INTERFACE

$log = get_logger();

If Log::Log4perl is available, return its logger. Otherwise return an instance of self that offers a default implementation of the following Log4perl methods:

$log->logcroak($msg);

Log $msg and croak.