log

Log Class provided by System to manage log handlers.

package

SYSTEM\LOG

Methods

Error Handler for System-log handling

__error_handler(integer $code, string $message, string $file, string $line, boolean $thrown = true) : boolean
static

Arguments

$code

integer

Errorcode

$message

string

Error Message

$file

string

Error File

$line

string

Error File-Line

$thrown

boolean

Was the Error thrown?

Response

boolean

Returns true or false

Exception Handler for System-log handling

__exception_handler(\Exception $E, boolean $thrown = true) : boolean
static

Arguments

$E

\Exception

Thrown Execption to be handled

$thrown

boolean

Was the Exception thrown?

Response

boolean

Returns true or false depending on thrown

Fatal Error Handler for System-log handling (unused - experimental)

__fatal_error_handler(string $bufferContent, boolean $thrown = true) : string
static

Arguments

$bufferContent

string

Website contens before sent to user

$thrown

boolean

Was the Error thrown?

Response

string

Returns the buffercontent or an json error.

Shutdown Handler for System-log handling

__shutdown_handler(boolean $thrown = true) : boolean
static

Arguments

$thrown

boolean

Was the Error thrown?

Response

boolean

Returns true or false

Call handlers function upon error

call_handlers(\Exception $E, boolean $thrown = true) : boolean
static

Arguments

$E

\Exception

Thrown Execption to be handled

$thrown

boolean

Was the Exception thrown?

Response

boolean

Returns true or false.

Register a Log Handler

registerHandler(\SYSTEM\LOG\class $handler) : null
static

Arguments

$handler

\SYSTEM\LOG\class

Classname of the handler to be registered

Response

null

Returns null.

Constants

string Variable to store hander function call name

HANDLER_FUNC_CALL

Properties

array Variable to store all registred log handlers

handlers : 
static

Type(s)