Public Member Functions | |
__construct () | |
log ($str="", $data="") | |
get_session_log () | |
error_log ($errn, $errstr, $file, $line, $context) | |
enable_log ($name) | |
Private Member Functions | |
log_details ($data, $pref="") | |
Private Attributes | |
$_log | |
logging mode flag | |
$session | |
all messages generated for current request |
__construct | ( | ) |
constructor
enable_log | ( | $ | name | ) |
enable logging
$name | path to the log file, if false provided as valut - logging will be disabled |
error_log | ( | $ | errn, | |
$ | errstr, | |||
$ | file, | |||
$ | line, | |||
$ | context | |||
) |
error handler, put normal php errors in log file
errn | error number | |
errstr | error description | |
file | error file | |
line | error line | |
context | error cntext |
get_session_log | ( | ) |
get logs for current request
log | ( | $ | str = "" , |
|
$ | data = "" | |||
) |
put record in log
str | string with log info, optional | |
data | data object, which will be added to log, optional |
log_details | ( | $ | data, | |
$ | pref = "" | |||
) | [private] |
convert array to string representation ( it is a bit more readable than var_dump )
data | data object | |
pref | prefix string, used for formating, optional |
$_log [private] |
logging mode flag
$session [private] |
all messages generated for current request