PHP Class Google\Cloud\Logger\AppEngineFlexFormatter

Inheritance: extends Monolog\Formatter\LineFormatter
Afficher le fichier Open project: GoogleCloudPlatform/gcloud-php

Méthodes publiques

Méthode 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 méthode

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 méthode

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
Résultat mixed The formatted record