Class AppLogLine (2.0.0)

public final class AppLogLine implements Serializable

An AppLogLine contains all the information for a single application log. Specifically, this information is: (1) the time at which the logged event occurred, (2) the level that the event was logged at, and (3) the message associated with this event. AppLogLines may be inserted by the user via logging frameworks, or by App Engine itself if we wish to alert the user that certain events have occurred.

Inheritance

java.lang.Object > AppLogLine

Implements

Serializable

Constructors

AppLogLine()

public AppLogLine()

Default zero-argument constructor that creates an AppLogLine.

Methods

equals(@Nullable Object obj)

public boolean equals(@Nullable Object obj)
Parameter
NameDescription
obj@org.checkerframework.checker.nullness.qual.Nullable java.lang.Object
Returns
TypeDescription
boolean
Overrides

getLogLevel()

public LogService.LogLevel getLogLevel()
Returns
TypeDescription
LogService.LogLevel

getLogMessage()

public String getLogMessage()
Returns
TypeDescription
String

getTimeUsec()

public long getTimeUsec()
Returns
TypeDescription
long

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

setLogLevel(LogService.LogLevel logLevel)

public void setLogLevel(LogService.LogLevel logLevel)
Parameter
NameDescription
logLevelLogService.LogLevel

setLogMessage(String logMessage)

public void setLogMessage(String logMessage)
Parameter
NameDescription
logMessageString

setTimeUsec(long timeUsec)

public void setTimeUsec(long timeUsec)
Parameter
NameDescription
timeUseclong

toString()

public String toString()
Returns
TypeDescription
String
Overrides