@ParametersAreNonnullByDefault @ThreadSafe public class Slf4jLogRecordImpl extends Object implements JsonWriteable, Slf4jLogRecord
| Constructor and Description |
|---|
Slf4jLogRecordImpl(boolean isLogged,
String logger,
Level level,
org.slf4j.Marker marker,
long timestampMillis,
String format,
Object... arguments) |
Slf4jLogRecordImpl(boolean isLogged,
String logger,
Level level,
org.slf4j.Marker marker,
String format,
Object... arguments) |
Slf4jLogRecordImpl(String logger,
Level level,
org.slf4j.Marker marker,
String format,
Object... arguments) |
Slf4jLogRecordImpl(String logger,
Level level,
String format,
Object... arguments) |
| Modifier and Type | Method and Description |
|---|---|
void |
attach(Object obj) |
Object[] |
getArguments() |
Set<Object> |
getAttachments() |
Object[] |
getExtraArguments() |
Object[] |
getExtraArgumentsRaw() |
Throwable |
getExtraThrowable() |
Level |
getLevel() |
String |
getLoggerName() |
org.slf4j.Marker |
getMarker() |
String |
getMessage() |
String |
getMessageFormat() |
int |
getNrMessageArguments() |
String |
getThreadName() |
long |
getTimeStamp() |
boolean |
hasAttachment(Object obj) |
boolean |
isLogged()
Indicates that this log record has been sent to the logging backend to persist.
|
void |
setIsLogged() |
String |
toString()
can be sub-classed to change the string representation.
|
void |
writeJsonTo(Appendable appendable)
can be sub-classed to change the json representation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitwriteJsonTo, writeTocompareByTimestamp, getTimeStampInstant, toLogRecordpublic Slf4jLogRecordImpl(String logger, Level level, String format, Object... arguments)
public Slf4jLogRecordImpl(String logger, Level level, @Nullable org.slf4j.Marker marker, String format, Object... arguments)
public Slf4jLogRecordImpl(boolean isLogged,
String logger,
Level level,
@Nullable
org.slf4j.Marker marker,
String format,
Object... arguments)
public final String getLoggerName()
getLoggerName in interface Slf4jLogRecordpublic final Level getLevel()
getLevel in interface Slf4jLogRecordpublic final long getTimeStamp()
getTimeStamp in interface Slf4jLogRecord@Nullable public final org.slf4j.Marker getMarker()
getMarker in interface Slf4jLogRecordpublic final String getMessageFormat()
getMessageFormat in interface Slf4jLogRecord@Nonnull public final Object[] getArguments()
getArguments in interface Slf4jLogRecordpublic final int getNrMessageArguments()
getNrMessageArguments in interface Slf4jLogRecordpublic final String getThreadName()
getThreadName in interface Slf4jLogRecord@Nonnull public final String getMessage()
getMessage in interface Slf4jLogRecord@Nonnull public final Object[] getExtraArgumentsRaw()
getExtraArgumentsRaw in interface Slf4jLogRecord@Nonnull public final Object[] getExtraArguments()
getExtraArguments in interface Slf4jLogRecord@Nullable public final Throwable getExtraThrowable()
getExtraThrowable in interface Slf4jLogRecordpublic String toString()
public void writeJsonTo(Appendable appendable) throws IOException
writeJsonTo in interface JsonWriteableIOExceptionpublic final boolean isLogged()
Slf4jLogRecordisLogged in interface Slf4jLogRecordpublic final void setIsLogged()
setIsLogged in interface Slf4jLogRecordpublic final void attach(Object obj)
attach in interface Slf4jLogRecordpublic final boolean hasAttachment(Object obj)
hasAttachment in interface Slf4jLogRecordpublic final Set<Object> getAttachments()
getAttachments in interface Slf4jLogRecordCopyright © 2021 SPF4J. All rights reserved.