public final class MapBasedSlf4jPropsBuilder extends Object
Slf4jProperties using the settings obtained from a Map.
Use the keys from the various KEY_* fields to properly populate the Map before calling this class' methods.
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_AUDIT_STREAM_FIELD_NAME |
static String |
DEFAULT_MARKER |
static String |
DEFAULT_MDC_FIELD_NAME_SEPARATOR |
static String |
DEFAULT_MDC_FIELD_SEPARATOR |
static String |
DEFAULT_MDC_FIELDS |
static String |
DEFAULT_SERIALIZED_EVENT_FIELD_NAME |
static String |
DEFAULT_STRING_ENCODING |
static String |
KEY_AUDIT_STREAM_FIELD_NAME |
static String |
KEY_MARKER |
static String |
KEY_MDC_FIELD_NAME_SEPARATOR |
static String |
KEY_MDC_FIELD_SEPARATOR |
static String |
KEY_MDC_FIELDS |
static String |
KEY_SERIALIZED_EVENT_FIELD_NAME |
static String |
KEY_STRING_ENCODING |
| Modifier and Type | Method and Description |
|---|---|
static Slf4jProperties |
build(Map<String,String> properties)
Initialize a set of slf4j properties based on key / values in a
HashMap. |
static Slf4jProperties |
buildDefault()
Creates a set of slf4j properties that use the defaults as specified in this class.
|
public static final String DEFAULT_MARKER
public static final String DEFAULT_STRING_ENCODING
public static final String DEFAULT_AUDIT_STREAM_FIELD_NAME
public static final String DEFAULT_SERIALIZED_EVENT_FIELD_NAME
public static final String DEFAULT_MDC_FIELDS
Slf4jProperties.setMdcFields(String)public static final String DEFAULT_MDC_FIELD_SEPARATOR
public static final String DEFAULT_MDC_FIELD_NAME_SEPARATOR
public static final String KEY_MARKER
public static final String KEY_STRING_ENCODING
public static final String KEY_AUDIT_STREAM_FIELD_NAME
public static final String KEY_SERIALIZED_EVENT_FIELD_NAME
public static final String KEY_MDC_FIELDS
public static final String KEY_MDC_FIELD_SEPARATOR
public static final String KEY_MDC_FIELD_NAME_SEPARATOR
public static Slf4jProperties buildDefault()
MapBasedSlf4jPropsBuilderpublic static Slf4jProperties build(Map<String,String> properties)
HashMap.properties - A HashMap with configuration properties, using the keys as specified in this classSlf4jProperties object with default values, plus the provided parametersNullPointerException - When properties is nullCopyright © 2015–2016 Michael Beiter