Documentation

Table Of Contents

Previous topic

< Class Phalcon\Logger

Next topic

Class Phalcon\Logger\Adapter\File >

This Page

Class Phalcon\Logger\Adapter

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 begin ()

Starts a transaction

public Phalcon\Logger\Adapter commit ()

Commits the internal transaction

public Phalcon\Logger\Adapter rollback ()

Rollbacks the internal transaction

public Phalcon\Logger\Adapter emergence (string $message)

Sends/Writes an emergence message to the log

public Phalcon\Logger\Adapter debug (string $message)

Sends/Writes a debug message to the log

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

Sends/Writes an error message to the log

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

Sends/Writes an info message to the log

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

Sends/Writes a notice message to the log

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

Sends/Writes a warning message to the log

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

Sends/Writes an alert message to the log

public Phalcon\Logger\Adapter log (string $message, [int $type])

Logs messages to the internal loggger. Appends logs to the