jLogErrorMessage

Implements \jILogMessage

this class is formatting an error message for a logger

package

jelix

Methods

__construct

__construct(string $category, integer $code, string $message, string $file, integer $line, array $trace) 

Arguments

$category

string

category of the message (error, warning...)

$code

integer

error code

$message

string

error message

$file

string

file path + file name where the error appeared

$line

integer

the line where the error appeared

$trace

array

stack trace

return the category of the message

getCategory() : string

Response

string

category of the message (error, warning...)

getCode

getCode() : string

Response

string

error code

getFile

getFile() : string

Response

string

file path + file name where the error appeared

return the full message, formated for simple text output (it can contain informations other than the message itself)

getFormatedMessage() : string

Response

string

formated error message

getLine

getLine() : integer

Response

integer

the line where the error appeared

getMessage

getMessage() : string

Response

string

error message

getTrace

getTrace() : array

Response

array

the stack trace

sanitizeParams

sanitizeParams( $params) 

Arguments

$params

set the pattern to format the message output

setFormat(string $format) 

Arguments

$format

string

Properties

category

category : 

Type(s)

message

message : 

Type(s)

file

file : 

Type(s)

line

line : 

Type(s)

trace

trace : 

Type(s)

code

code : 

Type(s)

format

format : 

Type(s)