Documentation

Table Of Contents

Previous topic

< Interface Phalcon\Http\Response\HeadersInterface

Next topic

Interface Phalcon\Logger\FormatterInterface >

This Page

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 log (string $message, [int $type])

Sends/Writes messages to the file log

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\Adapter debug (string $message)

Sends/Writes a debug message to the log

abstract public Phalcon\Logger\Adapter error (string $message)

Sends/Writes an error message to the log

abstract public Phalcon\Logger\Adapter info (string $message)

Sends/Writes an info message to the log

abstract public Phalcon\Logger\Adapter notice (string $message)

Sends/Writes a notice message to the log

abstract public Phalcon\Logger\Adapter warning (string $message)

Sends/Writes a warning message to the log

abstract public Phalcon\Logger\Adapter alert (string $message)

Sends/Writes an alert message to the log