PHP 클래스 Google\Cloud\Logger\AppEngineFlexFormatter

상속: extends Monolog\Formatter\LineFormatter
파일 보기 프로젝트 열기: GoogleCloudPlatform/gcloud-php

공개 메소드들

메소드 설명
__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