W3cubDocs

/Phalcon 2

Interface Phalcon\Logger\AdapterInterface

Phalcon\Logger\AdapterInterface initializer

Methods

abstract public Phalcon\Logger\Adapter setFormatter (Phalcon\Logger\FormatterInterface $formatter)

Sets the message formatter

abstract public Phalcon\Logger\FormatterInterface getFormatter ()

Returns the internal formatter

abstract public Phalcon\Logger\Adapter setLogLevel (int $level)

Filters the logs sent to the handlers to be greater or equals than a specific level

abstract public int getLogLevel ()

Returns the current log level

abstract public Phalcon\Logger\Adapter begin ()

Starts a transaction

abstract public Phalcon\Logger\Adapter commit ()

Commits the internal transaction

abstract public Phalcon\Logger\Adapter rollback ()

Rollbacks the internal transaction

abstract public boolean close ()

Closes the logger

abstract public Phalcon\Logger\AdapterInterface log (int|string $type, string $message, [array $context])

Sends/Writes messages to the file log

abstract public Phalcon\Logger\AdapterInterface debug (string $message, [array $context])

Sends/Writes a debug message to the log

abstract public Phalcon\Logger\AdapterInterface info (string $message, [array $context])

Sends/Writes an info message to the log

abstract public Phalcon\Logger\AdapterInterface notice (string $message, [unknown $context])

Sends/Writes a notice message to the log

abstract public Phalcon\Logger\AdapterInterface warning (string $message, [array $context])

Sends/Writes a warning message to the log

abstract public Phalcon\Logger\AdapterInterface error (string $message, [array $context])

Sends/Writes an error message to the log

abstract public Phalcon\Logger\AdapterInterface critical (string $message, [array $context])

Sends/Writes a critical message to the log

abstract public Phalcon\Logger\AdapterInterface alert (string $message, [array $context])

Sends/Writes an alert message to the log

abstract public Phalcon\Logger\AdapterInterface emergency (string $message, [array $context])

Sends/Writes an emergency message to the log

© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/2.0.0/api/Phalcon_Logger_AdapterInterface.html