The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

DBR::Util::Logger

SYNOPSIS

  use DBR::Util::Logger;

  $logger = new DBR::Util::Logger( [
                                        -user_id  => $user_id, # Optional
                                        -logPath  => $alternatePath,
                                        -logLevel => 'level' # None, Info, Warn, Debug, Debug2, Debug3
                                        -bDebug   => $boolDebug, # Deprecated
                                        -noLog    => $boolNoLog, # Deprecated ]
                                    );

DESCRIPTION

The purpose of the Logger Object is to log script information on a per user basis, as well as keep a transaction log of all DB related API Calls.

METHODS

new (Constructor)

-user_id
-logpath
-logLevel

log

This method provides logging (optionally on a per user basis).

logErr,logWarn, logInfo, logDebug, logDebug2, logDebug3

wrappers around log

getTime

accepts null or unix time as input (if null, current time is assumed) returns an array like localtime, except that year is adjust to 4 digits and month is 1-12 instead of 0-11