PHP Класс Logger\Formatter

Formats a log message. The formatter allows for the following parameters. %date - Date of the log %message - Log message %code - Error Code Level %str_code - String representation of the error code
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_format resource Output file.

Открытые методы

Метод Описание
__construct ( object $format ) : void Create a formatter.
format ( integer $code, string $message ) : void Handles a message.

Описание методов

__construct() публичный Метод

Create a formatter.
public __construct ( object $format ) : void
$format object String format to log a message
Результат void

format() публичный Метод

Handles a message.
public format ( integer $code, string $message ) : void
$code integer Log level code.
$message string Message to handle.
Результат void

Описание свойств

$_format защищенное свойство

Output file.
protected resource $_format
Результат resource