public final class AvroLogRecordImpl extends Object implements Slf4jLogRecord
Constructor and Description |
---|
AvroLogRecordImpl(org.spf4j.base.avro.LogRecord record) |
AvroLogRecordImpl(org.spf4j.base.avro.LogRecord record,
boolean isLogged) |
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() |
Instant |
getTimeStampInstant() |
boolean |
hasAttachment(Object obj) |
boolean |
isLogged()
Indicates that this log record has been sent to the logging backend to persist.
|
void |
setIsLogged() |
org.spf4j.base.avro.LogRecord |
toLogRecord(String origin,
String traceId) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
compareByTimestamp
public AvroLogRecordImpl(org.spf4j.base.avro.LogRecord record)
public AvroLogRecordImpl(org.spf4j.base.avro.LogRecord record, boolean isLogged)
public org.spf4j.base.avro.LogRecord toLogRecord(String origin, String traceId)
toLogRecord
in interface Slf4jLogRecord
public Object[] getArguments()
getArguments
in interface Slf4jLogRecord
public Object[] getExtraArgumentsRaw()
getExtraArgumentsRaw
in interface Slf4jLogRecord
public Object[] getExtraArguments()
getExtraArguments
in interface Slf4jLogRecord
public Throwable getExtraThrowable()
getExtraThrowable
in interface Slf4jLogRecord
public Level getLevel()
getLevel
in interface Slf4jLogRecord
public String getLoggerName()
getLoggerName
in interface Slf4jLogRecord
@Nullable public org.slf4j.Marker getMarker()
getMarker
in interface Slf4jLogRecord
public String getMessage()
getMessage
in interface Slf4jLogRecord
public String getMessageFormat()
getMessageFormat
in interface Slf4jLogRecord
public int getNrMessageArguments()
getNrMessageArguments
in interface Slf4jLogRecord
public String getThreadName()
getThreadName
in interface Slf4jLogRecord
public long getTimeStamp()
getTimeStamp
in interface Slf4jLogRecord
public Instant getTimeStampInstant()
getTimeStampInstant
in interface Slf4jLogRecord
public boolean isLogged()
Slf4jLogRecord
isLogged
in interface Slf4jLogRecord
public void setIsLogged()
setIsLogged
in interface Slf4jLogRecord
public void attach(Object obj)
attach
in interface Slf4jLogRecord
public Set<Object> getAttachments()
getAttachments
in interface Slf4jLogRecord
public boolean hasAttachment(Object obj)
hasAttachment
in interface Slf4jLogRecord
Copyright © 2021 SPF4J. All rights reserved.