Table Of ContentsPrevious topic< Abstract class Phalcon\Logger Next topic |
Abstract class Phalcon\Logger\Adapter¶implements Phalcon\Logger\AdapterInterface Base class for Phalcon\Logger adapters Methods¶public Phalcon\Logger\Adapter setLogLevel (int $level) Filters the logs sent to the handlers that are less or equal than a specific level public int getLogLevel () Returns the current log level public Phalcon\Logger\Adapter setFormatter (Phalcon\Logger\FormatterInterface $formatter) Sets the message formatter public Phalcon\Logger\Adapter isTransaction () Returns the current transaction public Phalcon\Logger\Adapter begin () Starts a transaction public Phalcon\Logger\Adapter commit () Commits the internal transaction public Phalcon\Logger\Adapter rollback () Rollbacks the internal transaction public emergence (unknown $message, [unknown $context]) ... public Phalcon\Logger\Adapter log (unknown $type, string $message, [array $context]) Logs messages to the internal logger. Appends messages to the log public Phalcon\Logger\AdapterInterface debug (string $message, [array $context]) Sends/Writes a debug message to the log public Phalcon\Logger\AdapterInterface info (string $message, [array $context]) Sends/Writes an info message to the log public Phalcon\Logger\AdapterInterface notice (string $message, [array $context]) Sends/Writes a notice message to the log public Phalcon\Logger\AdapterInterface warning (string $message, [array $context]) Sends/Writes a warning message to the log public Phalcon\Logger\AdapterInterface error (string $message, [array $context]) Sends/Writes an error message to the log public Phalcon\Logger\AdapterInterface critical (string $message, [array $context]) Sends/Writes a critical message to the log public Phalcon\Logger\AdapterInterface alert (string $message, [array $context]) Sends/Writes an alert message to the log public Phalcon\Logger\AdapterInterface emergency (string $message, [array $context]) Sends/Writes an emergency message to the log abstract protected logInternal (unknown $message, unknown $type, unknown $time, unknown $context) ... abstract public Phalcon\Logger\FormatterInterface getFormatter () inherited from Phalcon\Logger\AdapterInterface Returns the internal formatter abstract public boolean close () inherited from Phalcon\Logger\AdapterInterface Closes the logger |