General logger class used by PET. Keeps its logfiles in $BASEPATH/apilogs.
$instance->$logname($message,[$debuglevel]);
$logname can be error (e), warning (w), debug (d), performance (p), $message is the text to log, while $debuglevel (optional) is the debug level under which debug logging is allowed for a given log call.
If not in “strict loggin mode”, AUTOLOAD allows the calling of other methods, too.
| PET:: | General logger class used by PET. |
| Variables | |
| $DISP | PET::Dispatcher instance. |
| %ALLOWED | List of allowed logfiles when runing in strict mode. |
| %MAPPINGS | Map some shortcuts to longer function names. |
| %HANDLERS | Store filehandlers temporarily. |
| $STRICT | True if we run under “strict mode”. |
| $CONF | |
| Functions | |
| new | |
| _log($type,$message) | This is the logfile-writer. |
| AUTOLOAD | |
| DESTROY |
PET::Dispatcher instance.
our $DISP
List of allowed logfiles when runing in strict mode.
our %ALLOWED
Map some shortcuts to longer function names.
our %MAPPINGS
Store filehandlers temporarily.
our %HANDLERS
True if we run under “strict mode”.
our $STRICT
our $CONF
sub new
This is the logfile-writer.
sub _log
sub AUTOLOAD
sub DESTROY