Mental Space

Logger
in package

FinalYes

Class Logger

Tags
thanks

to Luca Tortora

Table of Contents

Properties

$filename  : string
$func_trace  : bool
$grey_log_on  : bool
$greylog_url  : mixed
$uniqid  : string|null

Methods

__construct()  : mixed
critical()  : mixed
error()  : mixed
info()  : mixed
log_action()  : false|string|null
warning()  : mixed
_format_log_message()  : string

Properties

$filename

public string $filename = ""

$func_trace

public bool $func_trace = false

$grey_log_on

public bool $grey_log_on = false

$greylog_url

public mixed $greylog_url

$uniqid

public string|null $uniqid = null

Methods

__construct()

public __construct([string $filename = 'general.log' ][, bool $with_uniq_id = false ][, bool $called_function = false ]) : mixed
Parameters
$filename : string = 'general.log'
$with_uniq_id : bool = false
$called_function : bool = false

critical()

public critical(mixed $message) : mixed
Parameters
$message : mixed

error()

public error(mixed $message) : mixed
Parameters
$message : mixed

info()

public info(mixed $message) : mixed
Parameters
$message : mixed

log_action()

public log_action([null $message = null ][, string $type = 'INFO' ]) : false|string|null
Parameters
$message : null = null

The message

$type : string = 'INFO'

The type of message

Return values
false|string|null

warning()

public warning(mixed $message) : mixed
Parameters
$message : mixed

_format_log_message()

private _format_log_message([mixed $message = null ][, mixed $type = 'INFO' ]) : string
Parameters
$message : mixed = null
$type : mixed = 'INFO'
Return values
string

        
On this page

Search results