Class SimpleLogRecord
- java.lang.Object
-
- java.util.logging.LogRecord
-
- com.google.common.flogger.backend.system.AbstractLogRecord
-
- com.google.common.flogger.backend.system.SimpleLogRecord
-
- All Implemented Interfaces:
java.io.Serializable
public final class SimpleLogRecord extends AbstractLogRecord
An eagerly evaluatingLogRecordwhich is created by the Fluent Logger frontend and can be passed to a normal logHandlerinstance for output.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static SimpleLogRecordcreate(com.google.common.flogger.backend.LogData data)Deprecated.Use create(LogData data, Metadata scope) and pass scoped metadata in.static SimpleLogRecordcreate(com.google.common.flogger.backend.LogData data, com.google.common.flogger.backend.Metadata scope)Creates aSimpleLogRecordfor a normal log statement from the given data.static SimpleLogRecorderror(java.lang.RuntimeException error, com.google.common.flogger.backend.LogData data)Deprecated.Use error(LogData data, Metadata scope) and pass scoped metadata in.static SimpleLogRecorderror(java.lang.RuntimeException error, com.google.common.flogger.backend.LogData data, com.google.common.flogger.backend.Metadata scope)Creates aSimpleLogRecordin the case of an error during logging.-
Methods inherited from class com.google.common.flogger.backend.system.AbstractLogRecord
appendFormattedMessageTo, getFormattedMessage, getLogData, getLogMessageFormatter, getMessage, getMetadataProcessor, setMessage, setParameters, setResourceBundle, setResourceBundleName, toMutableLogRecord, toString
-
Methods inherited from class java.util.logging.LogRecord
getInstant, getLevel, getLoggerName, getMillis, getParameters, getResourceBundle, getResourceBundleName, getSequenceNumber, getSourceClassName, getSourceMethodName, getThreadID, getThrown, setInstant, setLevel, setLoggerName, setMillis, setSequenceNumber, setSourceClassName, setSourceMethodName, setThreadID, setThrown
-
-
-
-
Method Detail
-
create
public static SimpleLogRecord create(com.google.common.flogger.backend.LogData data, com.google.common.flogger.backend.Metadata scope)
Creates aSimpleLogRecordfor a normal log statement from the given data.
-
create
@Deprecated public static SimpleLogRecord create(com.google.common.flogger.backend.LogData data)
Deprecated.Use create(LogData data, Metadata scope) and pass scoped metadata in.
-
error
public static SimpleLogRecord error(java.lang.RuntimeException error, com.google.common.flogger.backend.LogData data, com.google.common.flogger.backend.Metadata scope)
Creates aSimpleLogRecordin the case of an error during logging.
-
error
@Deprecated public static SimpleLogRecord error(java.lang.RuntimeException error, com.google.common.flogger.backend.LogData data)
Deprecated.Use error(LogData data, Metadata scope) and pass scoped metadata in.
-
-