@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, wait
writeJsonTo, writeTo
compareByTimestamp, getTimeStampInstant, toLogRecord
public 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 Slf4jLogRecord
public final Level getLevel()
getLevel
in interface Slf4jLogRecord
public final long getTimeStamp()
getTimeStamp
in interface Slf4jLogRecord
@Nullable public final org.slf4j.Marker getMarker()
getMarker
in interface Slf4jLogRecord
public final String getMessageFormat()
getMessageFormat
in interface Slf4jLogRecord
@Nonnull public final Object[] getArguments()
getArguments
in interface Slf4jLogRecord
public final int getNrMessageArguments()
getNrMessageArguments
in interface Slf4jLogRecord
public 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 Slf4jLogRecord
public String toString()
public void writeJsonTo(Appendable appendable) throws IOException
writeJsonTo
in interface JsonWriteable
IOException
public final boolean isLogged()
Slf4jLogRecord
isLogged
in interface Slf4jLogRecord
public final void setIsLogged()
setIsLogged
in interface Slf4jLogRecord
public final void attach(Object obj)
attach
in interface Slf4jLogRecord
public final boolean hasAttachment(Object obj)
hasAttachment
in interface Slf4jLogRecord
public final Set<Object> getAttachments()
getAttachments
in interface Slf4jLogRecord
Copyright © 2021 SPF4J. All rights reserved.