LogLine

Application log line emitted while processing a request.

JSON representation
{
  "time": string,
  "severity": enum(LogSeverity),
  "logMessage": string,
  "sourceLocation": {
    object(SourceLocation)
  },
}
Field name Type Description
time string

Approximate time when this log entry was made.

A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

severity enum(LogSeverity) Severity of this log entry.
logMessage string App-provided log message.
sourceLocation object(SourceLocation) Where in the source code this log message was written.

SourceLocation

Specifies a location in a source code file.

JSON representation
{
  "file": string,
  "line": string,
  "functionName": string,
}
Field name Type Description
file string Source file name. Depending on the runtime environment, this might be a simple name or a fully-qualified name.
line string Line within the source file.
functionName string Human-readable name of the function or method being invoked, with optional context such as the class or package name. This information is used in contexts such as the logs viewer, where a file and line number are less meaningful. The format can vary by language. For example: qual.if.ied.Class.method (Java), dir/package.func (Go), function (Python).