Text Logger Class. More...
Public Member Functions | |
__construct ($filename, $mask=false, $format=false, $open_mode= 'a') | |
Constructor. | |
writeMessage ($msg, $severity) | |
Data Fields | |
$format | |
Protected Attributes | |
$_file | |
File handle. |
Text Logger Class.
Definition at line 16 of file axTextLogger.class.php.
axTextLogger::__construct | ( | $ | filename, |
$ | mask = false , |
||
$ | format = false , |
||
$ | open_mode = 'a' |
||
) |
Constructor.
If $format parameter is not specified, the default format will be used (which is "[%s] %s: %s\n"). If $open_mode
parameter is not specified, the 'a' (Write + Append) open mode will be used
string | $filename | |
interger | $mask | [optional] [default false ] If false, will handle all priorities |
string | $format | [optional] [default false ] If false, will use "[%s] %s: %s\n" as format |
char | $open_mode | [optional] [default 'a' ] |
Definition at line 53 of file axTextLogger.class.php.
axTextLogger::writeMessage | ( | $ | msg, |
$ | severity | ||
) |
Write the message .
string | $msg | The message to write |
string | $severity | (one of 'Error','Notice','Warning', or 'Debug') |
Reimplemented from axLogger.
Definition at line 67 of file axTextLogger.class.php.
SplFileObject axTextLogger::$_file [protected] |
File handle.
Definition at line 22 of file axTextLogger.class.php.
axTextLogger::$format |
Definition at line 40 of file axTextLogger.class.php.