LOG2FILE
LOG2FILE
if LOG2FILE is true, stuff gets additionally loged to file
Writes and reads from the logs table.
Replacement for old BW LogStr method.
$_instance : \MOD_log
Singleton instance
writeIdMember(int $IdMember, string $message, string $type)
Add one entry to log table. If log2file is enabled write to logfile before write to table. addslashes is executed on the message string inside the method.
int | $IdMember | is the id of the member the log will be applied to |
string | $message | the parameter to print |
string | $type | the event, which causes the log
BeWare this function does a nasty parameter change with the $_SESSION["IdMember"] but it restores it as it was before in any cases |
write(string $message, string $type)
Add one entry to log table. If log2file is enabled write to logfile before write to table. addslashes is executed on the message string inside the method.
string | $message | the parameter to print |
string | $type | the event, which causes the log
|