Labyrinth::Audit - Audit Handler for Labyrinth.
use Labyrinth::Audit; SetLogFile(%hash); LogRecord($level,@args); # examples SetLogFile( FILE => $logfile, USER => $username, LEVEL => $LOG_LEVEL_INFO, CLEAR => 1, CALLER => 1 ); LogRecord($LOG_LEVEL_INFO,'Process Started');
The Audit package contains a number of variables and functions that can be used within the framework to provide error, debugging and trace information.
DumpToFile SetLogFile LogRecord LogError LogWarning LogInfo LogDebug $LOG_LEVEL_ERROR $LOG_LEVEL_WARN $LOG_LEVEL_INFO $LOG_LEVEL_DEBUG $LOG_LEVEL
Audit Log functions enable tracing of actions for a user at a given time.
Writes blocks (separated by new lines) to the given file. Creates the file if it doesn't exist, and overwrites if it does.
Hash table entries can be as follows:
FILE => $logfile, USER => $username, LEVEL => $LOG_LEVEL_INFO, CLEAR => 1;
Note that FILE and USER are mandatory.
Sets the path of the file to be used as the log, together with the current username accessing the application.
Note that if there is any failure, such as no file access, the audit trail is disabled.
Record informational messages to Audit Log.
Shorthand call for Error messages.
Shorthand call for Warning messages.
Shorthand call for Information messages.
Shorthand call for Debug messages.
Barbie, <email@example.com> for Miss Barbell Productions, http://www.missbarbell.co.uk/
Copyright (C) 2002-2014 Barbie for Miss Barbell Productions All Rights Reserved. This module is free software; you can redistribute it and/or modify it under the Artistic License 2.0.