\google\appengine\api\log\AppLogLine
bookmark_borderbookmark
Stay organized with collections
Save and categorize content based on your preferences.
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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-07-21 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-07-21 UTC."],[[["This log contains details of a single application log, in contrast to syslog within the context of a request."],["`getLevel()` retrieves the severity of the log message as an integer."],["`getMessage()` returns the exact message that was logged by the application."],["`getTimeUsec()` provides the log's creation time in microseconds since the Unix epoch, returning a double value."],["`getDateTime()` offers the same creation time value as `getTimeUsec()` but represented as a DateTime object."]]],[]]