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.).Modifier and Type | Class and Description |
---|---|
static class |
ApiProxy.LogRecord.Level |
Constructor and Description |
---|
ApiProxy.LogRecord(ApiProxy.LogRecord.Level level,
long timestamp,
java.lang.String message) |
ApiProxy.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() |
long |
getTimestamp()
Returns the timestamp of the log message, in microseconds.
|
public ApiProxy.LogRecord(ApiProxy.LogRecord.Level level, long timestamp, java.lang.String message)
public ApiProxy.LogRecord(ApiProxy.LogRecord other, java.lang.String message)
public ApiProxy.LogRecord.Level getLevel()
public long getTimestamp()
public java.lang.String getMessage()