Property | Type | Description | |
---|---|---|---|
$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. |
Method | Description | |
---|---|---|
__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 |
Method | Description | |
---|---|---|
checkPassword ( ) : boolean | Checks client provided password to see if we should disable/enable the firelogger. | |
flush ( ) |
Method | Description | |
---|---|---|
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 | ||
return | boolean |
public commit ( ) |
public getFormatter ( ) : Phalcon\Logger\FormatterInterface | ||
return | Phalcon\Logger\FormatterInterface |
protected string $clientVersion | ||
return | string |
protected bool $isTransaction | ||
return | boolean |
protected array $logs | ||
return | array |
protected array $options | ||
return | array |
protected string $recommendedClientVersion | ||
return | string |
protected string $serverVersion | ||
return | string |