DBIx::QueryByName::Logger - Take care of all logging
use DBIx::QueryByName::Logger qw(get_logger); my $log = get_logger(); $log->logcroak('something went bad');
debug $msg;
Print a debug message to STDERR if the environment variable DBIXQUERYBYNAMEDEBUG is set to 1.
$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);
$msg
$log->error($msg);
$log->warn($msg);
$log->info($msg);
$log->log($msg);
To install DBIx::QueryByName, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::QueryByName
CPAN shell
perl -MCPAN -e shell install DBIx::QueryByName
For more information on module installation, please visit the detailed CPAN module installation guide.