Свойство | Тип | Описание | |
---|---|---|---|
$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. |
public __construct ( string $name = 'phalcon', array $options = [] ) | ||
$name | string | |
$options | array |
protected checkPassword ( ) : boolean | ||
Результат | boolean |
public commit ( ) |
public getFormatter ( ) : Phalcon\Logger\FormatterInterface | ||
Результат | Phalcon\Logger\FormatterInterface |
protected string $clientVersion | ||
Результат | string |
protected bool $isTransaction | ||
Результат | boolean |
protected array $logs | ||
Результат | array |
protected array $options | ||
Результат | array |
protected string $recommendedClientVersion | ||
Результат | string |
protected string $serverVersion | ||
Результат | string |