Documentation

Abstract class Phalcon\Logger\Formatter

implements Phalcon\Logger\FormatterInterface

Source on GitHub

This is a base class for logger formatters

Methods

public Phalcon\Logger\Formatter setTypeStrings (array $types)

Sets the string meaning of a logger constant

public array getTypeStrings ()

Returns the type strings

public Phalcon\Logger\Formatter setTypeString (string $type, string $name)

Sets the type strings

public string getTypeString (integer $type)

Returns the string meaning of a logger constant

protected interpolate (string $message, array $context)

Interpolates context values into the message placeholders

abstract public format (string $message, int $type, int $timestamp, array $context) inherited from Phalcon\Logger\FormatterInterface

Applies a format to a message before sent it to the internal log