public static final class ApiProxy.LogRecord
extends java.lang.Object
LogRecord
represents a single apphosting log entry,
including a Java-specific logging level, a timestamp in
microseconds, and a message a formatted string containing the
rest of the logging information (e.g. class and line number
information, the message itself, the stack trace for any
exception associated with the log record, etc.).
A Throwable may be attached to track the origin of the original log message.
Modifier and Type | Class and Description |
---|---|
static class |
ApiProxy.LogRecord.Level |
Constructor and Description |
---|
LogRecord(ApiProxy.LogRecord.Level level,
long timestamp,
java.lang.String message) |
LogRecord(ApiProxy.LogRecord.Level level,
long timestamp,
java.lang.String message,
java.lang.Throwable sourceLocation) |
LogRecord(ApiProxy.LogRecord other,
java.lang.String message)
A partial copy constructor.
|
Modifier and Type | Method and Description |
---|---|
ApiProxy.LogRecord.Level |
getLevel() |
java.lang.String |
getMessage() |
java.lang.Throwable |
getSourceLocation() |
long |
getTimestamp()
Returns the timestamp of the log message, in microseconds.
|
public LogRecord(ApiProxy.LogRecord.Level level, long timestamp, java.lang.String message)
public LogRecord(ApiProxy.LogRecord.Level level, long timestamp, java.lang.String message, java.lang.Throwable sourceLocation)
public LogRecord(ApiProxy.LogRecord other, java.lang.String message)
public ApiProxy.LogRecord.Level getLevel()
public long getTimestamp()
public java.lang.String getMessage()
public java.lang.Throwable getSourceLocation()