public final class LogAttribute<T> extends Pair<String,T> implements JsonWriteable, org.slf4j.Marker
| Constructor and Description |
|---|
LogAttribute(String first,
T second) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.slf4j.Marker reference) |
boolean |
contains(org.slf4j.Marker other) |
boolean |
contains(String name) |
static LogAttribute<Long> |
execTimeMicros(long time,
TimeUnit tu) |
static LogAttribute<Object> |
fromJson(CharSequence jsonStr) |
static LogAttribute<Object> |
fromMap(Map<String,Object> val) |
String |
getName() |
boolean |
hasChildren() |
boolean |
hasReferences() |
Iterator<org.slf4j.Marker> |
iterator() |
static LogAttribute<Slf4jLogRecord> |
log(Slf4jLogRecord record) |
static <T> LogAttribute<T> |
of(String val,
T obj) |
static LogAttribute<Level> |
origLevel(Level level) |
static LogAttribute<Level> |
origLoggerName(String loggerName) |
static LogAttribute<Level> |
origTimeStamp(Instant instant) |
static LogAttribute<Level> |
origTimeStamp(long millisSinceEpoch) |
boolean |
remove(org.slf4j.Marker reference) |
String |
toString()
Overwrite to change string image.
|
static LogAttribute<CharSequence> |
traceId(CharSequence id) |
static LogAttribute<Long> |
value(String what,
long value) |
void |
writeJsonTo(Appendable appendable) |
void |
writeJsonTo(org.codehaus.jackson.JsonGenerator gen) |
asMap, equals, from, getFirst, getKey, getSecond, getValue, hashCode, setValue, toList, writeToclone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitwriteJsonTo, writeTocomparingByKey, comparingByKey, comparingByValue, comparingByValuepublic String getName()
getName in interface org.slf4j.Markerpublic static <T> LogAttribute<T> of(String val, T obj)
public static LogAttribute<CharSequence> traceId(CharSequence id)
public static LogAttribute<Level> origLevel(Level level)
public static LogAttribute<Level> origLoggerName(String loggerName)
public static LogAttribute<Level> origTimeStamp(Instant instant)
public static LogAttribute<Level> origTimeStamp(long millisSinceEpoch)
public static LogAttribute<Slf4jLogRecord> log(Slf4jLogRecord record)
public static LogAttribute<Long> execTimeMicros(long time, TimeUnit tu)
public static LogAttribute<Long> value(String what, long value)
public String toString()
Pairpublic void writeJsonTo(Appendable appendable) throws IOException
writeJsonTo in interface JsonWriteableIOExceptionpublic void writeJsonTo(org.codehaus.jackson.JsonGenerator gen)
throws IOException
IOExceptionpublic static LogAttribute<Object> fromJson(CharSequence jsonStr)
public static LogAttribute<Object> fromMap(Map<String,Object> val)
public void add(org.slf4j.Marker reference)
add in interface org.slf4j.Markerpublic boolean remove(org.slf4j.Marker reference)
remove in interface org.slf4j.Markerpublic boolean hasChildren()
hasChildren in interface org.slf4j.Markerpublic boolean hasReferences()
hasReferences in interface org.slf4j.Markerpublic Iterator<org.slf4j.Marker> iterator()
iterator in interface org.slf4j.Markerpublic boolean contains(org.slf4j.Marker other)
contains in interface org.slf4j.Markerpublic boolean contains(String name)
contains in interface org.slf4j.MarkerCopyright © 2019 SPF4J. All rights reserved.