LogLine

Application log line emitted while processing a request.

JSON representation
{"time":string,"severity":enum(LogSeverity),"logMessage":string,"sourceLocation":{object(SourceLocation)},}
Field nameTypeDescription
timestring

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".

severityenum(LogSeverity)Severity of this log entry.
logMessagestringApp-provided log message.
sourceLocationobject(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 nameTypeDescription
filestringSource file name. Depending on the runtime environment, this might be a simple name or a fully-qualified name.
linestringLine within the source file.
functionNamestringHuman-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).

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-21 UTC.