PHP Класс Phalcon\Logger\Adapter\Firelogger

Автор: Richard Laffers ([email protected])
Наследование: extends Phalcon\Logger\Adapter, implements Phalcon\Logger\AdapterInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$clientVersion string Holds detected Firelogger client version.
$enabled boolean
$isTransaction boolean Denotes if there is a transaction started.
$logs array Storage for holding all messages until they are ready to be shipped to client.
$name string Name
$options array Leave empty if no password authentication is needed. (boolean) checkVersion Turn client version checks on / off. (boolean) traceable If TRUE, backtraces will be added to all logs.
$recommendedClientVersion string Recommended Firelogger client version.
$serverVersion string Holds current Firelogger server version.

Открытые методы

Метод Описание
__construct ( string $name = 'phalcon', array $options = [] ) Class constructor.
begin ( )
close ( ) : boolean
commit ( ) {@inheritdoc} Encodes all collected messages into HTTP headers. This method is registered as a shutdown handler, so transactions will get committed even if you forget to commit them yourself.
getFormatter ( ) : Phalcon\Logger\FormatterInterface
logInternal ( mixed $message, integer $type, integer $time, array $context = [] ) Writes the log to the headers.
setName ( string $name ) Setter for name

Защищенные методы

Метод Описание
checkPassword ( ) : boolean Checks client provided password to see if we should disable/enable the firelogger.
flush ( )

Приватные методы

Метод Описание
checkVersion ( ) : boolean Checks client version vs recommended version and logs a message if there is a mismatch. Does not disable firelogger even if there is version mismatch.

Описание методов

__construct() публичный Метод

Class constructor.
public __construct ( string $name = 'phalcon', array $options = [] )
$name string
$options array

begin() публичный Метод

public begin ( )

checkPassword() защищенный Метод

Disables/enables the firelogger appropriately.
protected checkPassword ( ) : boolean
Результат boolean

close() публичный Метод

public close ( ) : boolean
Результат boolean

commit() публичный Метод

{@inheritdoc} Encodes all collected messages into HTTP headers. This method is registered as a shutdown handler, so transactions will get committed even if you forget to commit them yourself.
public commit ( )

flush() защищенный Метод

protected flush ( )

getFormatter() публичный Метод

public getFormatter ( ) : Phalcon\Logger\FormatterInterface
Результат Phalcon\Logger\FormatterInterface

logInternal() публичный Метод

Writes the log to the headers.
public logInternal ( mixed $message, integer $type, integer $time, array $context = [] )
$message mixed Stuff to log. Can be of any type castable into a string (i.e. anything except for objects without __toString() implementation).
$type integer
$time integer
$context array

setName() публичный Метод

Setter for name
public setName ( string $name )
$name string

Описание свойств

$clientVersion защищенное свойство

Holds detected Firelogger client version.
protected string $clientVersion
Результат string

$enabled защищенное свойство

protected bool $enabled
Результат boolean

$isTransaction защищенное свойство

Denotes if there is a transaction started.
protected bool $isTransaction
Результат boolean

$logs защищенное свойство

Storage for holding all messages until they are ready to be shipped to client.
protected array $logs
Результат array

$name защищенное свойство

Name
protected string $name
Результат string

$options защищенное свойство

Leave empty if no password authentication is needed. (boolean) checkVersion Turn client version checks on / off. (boolean) traceable If TRUE, backtraces will be added to all logs.
protected array $options
Результат array

$recommendedClientVersion защищенное свойство

Recommended Firelogger client version.
protected string $recommendedClientVersion
Результат string

$serverVersion защищенное свойство

Holds current Firelogger server version.
protected string $serverVersion
Результат string