| DBR documentation | view source | Contained in the DBR distribution. |
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
| DBR documentation | view source | Contained in the DBR distribution. |