Свойство | 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. |
Méthode | 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 |
Méthode | 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() |
Résultat | array |
protected extractTrace ( array $trace ) : array | ||
$trace | array | |
Résultat | 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. |
Résultat | mixed |
public getTypeString ( integer $type ) : string | ||
$type | integer | |
Résultat | string |
protected int $maxPickleDepth | ||
Résultat | integer |
protected string $style | ||
Résultat | string |