extends abstract class Phalcon\Logger\Formatter
implements Phalcon\Logger\FormatterInterface
Formats messages using an one-line string
public __construct ([string $format], [string $dateFormat])
Phalcon\Logger\Formatter\Line construct
public setFormat (string $format)
Set the log format
public format getFormat ()
Returns the log format
public setDateFormat (string $date)
Sets the internal date format
public string getDateFormat ()
Returns the internal date format
public string format (string $message, int $type, int $timestamp, array $context)
Applies a format to a message before sent it to the internal log
public Phalcon\Logger\Formatter setTypeStrings (array $types) inherited from Phalcon\Logger\Formatter
Sets the string meaning of a logger constant
public array getTypeStrings () inherited from Phalcon\Logger\Formatter
Returns the type strings
public Phalcon\Logger\Formatter setTypeString (string $type, string $name) inherited from Phalcon\Logger\Formatter
Sets the type strings
public string getTypeString (integer $type) inherited from Phalcon\Logger\Formatter
Returns the string meaning of a logger constant
protected interpolate (string $message, array $context) inherited from Phalcon\Logger\Formatter
Interpolates context values into the message placeholders