Google Cloud PHP shared dependency, providing functionality useful to all components. Client - Class AppEngineFlexFormatterV3 (1.58.2)

Reference documentation and code samples for the Google Cloud PHP shared dependency, providing functionality useful to all components. Client class AppEngineFlexFormatterV3.

Monolog 3.x formatter for formatting logs on App Engine flexible environment.

If you are using Monolog 1.x, use Google\Cloud\Core\Logger\AppEngineFlexFormatter instead. If you are using Monolog 2.x, use Google\Cloud\Core\Logger\AppEngineFlexFormatterV2 instead.

Namespace

Google \ Cloud \ Core \ Logger

Methods

__construct

Parameters
Name Description
format string

[optional] The format of the message

dateFormat string

[optional] The format of the timestamp

ignoreEmptyContextAndExtra bool

[optional]

format

Get the plain text message with LineFormatter's format method and add metadata including the trace id then return the json string.

Parameter
Name Description
record Monolog\LogRecord

A record to format

Returns
Type Description
string The formatted record