\log

Class log

Log class

Summary

Methods
Properties
Constants
event()
debug()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
process_log()
$firstdebug
N/A

Properties

$firstdebug

$firstdebug : boolean

Type

boolean — Is first call

Methods

event()

event(string  $message, string  $event, integer|boolean  $line, string|boolean  $file, boolean  $send_mail = false) 

Event handler

Check for correct event typ. Call process log.

Parameters

string $message
string $event
integer|boolean $line
string|boolean $file
boolean $send_mail

debug()

debug(string  $message, integer|boolean  $line = false, string|boolean  $file = false) 

Debug

Debug output.

Parameters

string $message
integer|boolean $line
string|boolean $file

process_log()

process_log(string  $message, string  $event, integer|boolean  $line, string|boolean  $file, boolean  $send_mail = false) 

Process log

Save log in database or log file.

Parameters

string $message

Message.

string $event

Event type.

integer|boolean $line

Line

string|boolean $file

File

boolean $send_mail

Send message per email.