@Plugin(name="DelimLayout",
category="Core",
elementType="layout",
printObject=true)
public final class DelimLayout
extends org.apache.logging.log4j.core.layout.AbstractStringLayout
implements EnremmetaConstants
| Modifier and Type | Field and Description |
|---|---|
private char |
delimiter |
private String |
nullChar |
private char |
secondaryDelimiter |
private boolean |
waitForFutures |
private long |
waitForFuturesTimeoutMillis |
footer, header, LOGGERLOG_DELIMITER, LOG_LIST_DELIMITER, LOG_NULL_CHAR| Constructor and Description |
|---|
DelimLayout() |
DelimLayout(char delimiter,
char secondaryDelimiter,
String nullChar) |
DelimLayout(char delimiter,
char secondaryDelimiter,
String nullChar,
boolean waitForFutures,
long waitForFuturesTimeoutMillis) |
| Modifier and Type | Method and Description |
|---|---|
static DelimLayout |
createLayout(char delimiter,
char secondaryDelimiter,
String nullChar,
boolean waitForFutures,
long waitForFuturesTimeoutMillis) |
String |
getNullChar()
What to write instead of null (e.g., in some cases it's convenient to log "-", just like
NGINX does).
|
String |
toSerializable(org.apache.logging.log4j.core.LogEvent event)
Formats the event as an Object that can be serialized.
|
getBytes, getCharset, getContentType, toByteArrayprivate final boolean waitForFutures
private final long waitForFuturesTimeoutMillis
private final char delimiter
private final char secondaryDelimiter
private String nullChar
public DelimLayout()
public DelimLayout(char delimiter,
char secondaryDelimiter,
String nullChar)
public DelimLayout(char delimiter,
char secondaryDelimiter,
String nullChar,
boolean waitForFutures,
long waitForFuturesTimeoutMillis)
public String getNullChar()
@PluginFactory public static DelimLayout createLayout(@PluginAttribute(value="delimiter") char delimiter, @PluginAttribute(value="secondaryDelimiter") char secondaryDelimiter, @PluginAttribute(value="nullChar") String nullChar, @PluginAttribute(value="waitForFutures") boolean waitForFutures, @PluginAttribute(value="waitForFuturesTimeoutMillis") long waitForFuturesTimeoutMillis)
public String toSerializable(org.apache.logging.log4j.core.LogEvent event)
toSerializable in interface org.apache.logging.log4j.core.Layout<String>event - The Logging Event.