PHP Class Phalcon\Logger\Formatter\Firelogger

Inheritance: extends Phalcon\Logger\Formatter, implements Phalcon\Logger\FormatterInterface
Afficher le fichier Open project: phalcon/incubator

Protected Properties

Свойство 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éthodes publiques

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 ) : Firelogger Setter for _name
setStyle ( string $style ) : Firelogger Setter for style

Méthodes protégées

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.

Method Details

__construct() public méthode

Class constructor.
public __construct ( string $name = 'logger' )
$name string

extractFileLine() protected méthode

Extracts useful information from debug_backtrace()
protected extractFileLine ( array $trace ) : array
$trace array Array returned by debug_backtrace()
Résultat array

extractTrace() protected méthode

Extract useful information from exception traces.
protected extractTrace ( array $trace ) : array
$trace array
Résultat array

format() public méthode

Applies a format to a message before sent it to the internal log
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

getTypeString() public méthode

Translates Phalcon log types into Firelogger log level strings.
public getTypeString ( integer $type ) : string
$type integer
Résultat string

pickle() protected méthode

Reformats the passed log item. Recursive.
protected pickle ( mixed $var, integer $level ) : mixed
$var mixed
$level integer
Résultat mixed

setName() public méthode

Setter for _name
public setName ( string $name ) : Firelogger
$name string
Résultat Firelogger

setStyle() public méthode

Setter for style
public setStyle ( string $style ) : Firelogger
$style string
Résultat Firelogger

Property Details

$encoding protected_oe property

encoding
protected string $encoding
Résultat string

$maxPickleDepth protected_oe property

Maximum recursion for pickle method
protected int $maxPickleDepth
Résultat integer

$name protected_oe property

Holds name of this logger.
protected string $name
Résultat string

$style protected_oe property

Optional CSS snippet for logger icon in Firelogger console.
protected string $style
Résultat string