PHP Class Google\Cloud\Logger\AppEngineFlexFormatter

Inheritance: extends Monolog\Formatter\LineFormatter
Datei anzeigen Open project: GoogleCloudPlatform/gcloud-php

Public Methods

Method Description
__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.

Method Details

__construct() public method

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() public method

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
return mixed The formatted record