Property | Type | Description | |
---|---|---|---|
$encoding | string | encoding | |
$maxPickleDepth | integer | Maximum recursion for pickle method | |
$name | string | Holds name of this logger. | |
$style | string | Optional CSS snippet for logger icon in Firelogger console. |
Method | Description | |
---|---|---|
__construct ( string $name = 'logger' ) | Class constructor. | |
format ( string | integer | float | array | null | Exception $message, integer $type, integer $timestamp, array $context = [], array $trace = null, integer $order ) : mixed | Applies a format to a message before sent it to the internal log | |
getTypeString ( integer $type ) : string | Translates Phalcon log types into Firelogger log level strings. | |
setName ( string $name ) : |
Setter for _name | |
setStyle ( string $style ) : |
Setter for style |
Method | Description | |
---|---|---|
extractFileLine ( array $trace ) : array | Extracts useful information from debug_backtrace() | |
extractTrace ( array $trace ) : array | Extract useful information from exception traces. | |
pickle ( mixed $var, integer $level ) : mixed | Reformats the passed log item. Recursive. |
public __construct ( string $name = 'logger' ) | ||
$name | string |
protected extractFileLine ( array $trace ) : array | ||
$trace | array | Array returned by debug_backtrace() |
return | array |
protected extractTrace ( array $trace ) : array | ||
$trace | array | |
return | array |
public format ( string | integer | float | array | null | Exception $message, integer $type, integer $timestamp, array $context = [], array $trace = null, integer $order ) : mixed | ||
$message | string | integer | float | array | null | Exception | |
$type | integer | |
$timestamp | integer | |
$context | array | |
$trace | array | This is the output from debug_backtrace(). |
$order | integer | How many logs are stored in the stack already. |
return | mixed |
public getTypeString ( integer $type ) : string | ||
$type | integer | |
return | string |
protected int $maxPickleDepth | ||
return | integer |
protected string $style | ||
return | string |