DBR::Util::Logger
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 ] );
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.
This method provides logging (optionally on a per user basis).
wrappers around log
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
To install DBR, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBR
CPAN shell
perl -MCPAN -e shell install DBR
For more information on module installation, please visit the detailed CPAN module installation guide.