PHP Класс Google\Cloud\Logger\AppEngineFlexFormatter

Наследование: extends Monolog\Formatter\LineFormatter
Показать файл Открыть проект

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

Метод Описание
__construct ( string $format = null, string $dateFormat = null, boolean $ignoreEmptyContextAndExtra = false )
format ( array $record ) : mixed Get the plain text message with LineFormatter's format method and add metadata including the trace id then return the json string.

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

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

public __construct ( string $format = null, string $dateFormat = null, boolean $ignoreEmptyContextAndExtra = false )
$format string [optional] The format of the message
$dateFormat string [optional] The format of the timestamp
$ignoreEmptyContextAndExtra boolean [optional]

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

Get the plain text message with LineFormatter's format method and add metadata including the trace id then return the json string.
public format ( array $record ) : mixed
$record array A record to format
Результат mixed The formatted record