Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products. If you have feedback or questions as you navigate the site, click Send Feedback.

As PHP version 5.5 is no longer supported by the community, we strongly recommend new apps use the PHP 7+ runtime.

\google\appengine\api\log\AppLogLine

FINAL

Contains the details of a single application log created by calling

See also

syslog within the context of a request.

Methods

getLevel

getLevel() : integer

The severity of the log message. This differs from the level passed to syslog as described in @link LogService.

Returns

integer

The log severity.

getMessage

getMessage() : string

Returns

string

The message logged by the application.

getTimeUsec

getTimeUsec() : double

Returns

double

The time the log was created in microseconds since the Unix epoch.

getDateTime

getDateTime() : \google\appengine\api\log\DateTime

Returns The same value as {@link getTimeUsec()} as a DateTime.

Returns

\google\appengine\api\log\DateTime

The time the log was created accurate to the second.