public final class SimpleLogRecord extends AbstractLogRecord implements com.google.common.flogger.backend.SimpleMessageFormatter.SimpleLogHandler
LogRecord which is created by the Fluent Logger frontend and can be
passed to a normal log Handler instance for output.| Modifier and Type | Method and Description |
|---|---|
static SimpleLogRecord |
create(com.google.common.flogger.backend.LogData data)
Creates a
SimpleLogRecord for a normal log statement from the given data. |
static SimpleLogRecord |
error(java.lang.RuntimeException error,
com.google.common.flogger.backend.LogData data)
Creates a
SimpleLogRecord in the case of an error during logging. |
void |
handleFormattedLogMessage(java.util.logging.Level level,
java.lang.String message,
java.lang.Throwable thrown) |
getLogData, toStringgetLevel, getLoggerName, getMessage, getMillis, getParameters, getResourceBundle, getResourceBundleName, getSequenceNumber, getSourceClassName, getSourceMethodName, getThreadID, getThrown, setLevel, setLoggerName, setMessage, setMillis, setParameters, setResourceBundle, setResourceBundleName, setSequenceNumber, setSourceClassName, setSourceMethodName, setThreadID, setThrownpublic static SimpleLogRecord create(com.google.common.flogger.backend.LogData data)
SimpleLogRecord for a normal log statement from the given data.public static SimpleLogRecord error(java.lang.RuntimeException error, com.google.common.flogger.backend.LogData data)
SimpleLogRecord in the case of an error during logging.public void handleFormattedLogMessage(java.util.logging.Level level,
java.lang.String message,
@NullableDecl
java.lang.Throwable thrown)
handleFormattedLogMessage in interface com.google.common.flogger.backend.SimpleMessageFormatter.SimpleLogHandler