public class UuidProvider extends AbstractFieldJsonProvider<ch.qos.logback.classic.spi.ILoggingEvent>
| Modifier and Type | Field and Description |
|---|---|
static String |
FIELD_UUID |
static String |
STRATEGY_RANDOM
Type 4 UUID.
|
static String |
STRATEGY_TIME
Type 1 time based UUID.
|
| Constructor and Description |
|---|
UuidProvider() |
| Modifier and Type | Method and Description |
|---|---|
String |
getEthernet() |
String |
getStrategy() |
void |
setEthernet(String ethernet) |
void |
setStrategy(String strategy) |
void |
writeTo(com.fasterxml.jackson.core.JsonGenerator generator,
ch.qos.logback.classic.spi.ILoggingEvent iLoggingEvent)
Writes information about the event,
to the given generator.
|
getFieldName, setFieldNameisStarted, prepareForDeferredProcessing, start, stopaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextpublic static final String FIELD_UUID
public static final String STRATEGY_RANDOM
public static final String STRATEGY_TIME
ethernet can be set to either 'interface' (to automatically pick a MAC address from a network interface)
or a MAC address string.public void writeTo(com.fasterxml.jackson.core.JsonGenerator generator,
ch.qos.logback.classic.spi.ILoggingEvent iLoggingEvent)
throws IOException
JsonProviderIOExceptionpublic String getStrategy()
public void setStrategy(String strategy)
public String getEthernet()
public void setEthernet(String ethernet)
Copyright © 2018. All rights reserved.