Layout<String>
, Encoder<LogEvent>
, StringLayout
CsvLogEventLayout
, CsvParameterLayout
public abstract class AbstractCsvLayout extends AbstractStringLayout
AbstractStringLayout.Builder<B extends AbstractStringLayout.Builder<B>>, AbstractStringLayout.Serializer, AbstractStringLayout.Serializer2
Modifier and Type | Field | Description |
---|---|---|
protected static String |
DEFAULT_CHARSET |
|
protected static String |
DEFAULT_FORMAT |
configuration, eventCount, footer, header, LOGGER
DEFAULT_STRING_BUILDER_SIZE, MAX_STRING_BUILDER_SIZE
ELEMENT_TYPE
Modifier | Constructor | Description |
---|---|---|
protected |
AbstractCsvLayout(Configuration config,
Charset charset,
org.apache.commons.csv.CSVFormat csvFormat,
String header,
String footer) |
Modifier and Type | Method | Description |
---|---|---|
protected static org.apache.commons.csv.CSVFormat |
createFormat(String format,
Character delimiter,
Character escape,
Character quote,
org.apache.commons.csv.QuoteMode quoteMode,
String nullString,
String recordSeparator) |
|
String |
getContentType() |
Returns the content type output by this layout.
|
org.apache.commons.csv.CSVFormat |
getFormat() |
encode, getConfiguration, getContentFormat, markEvent
getBytes, getCharset, getFooter, getFooterSerializer, getHeader, getHeaderSerializer, getStringBuilder, getStringBuilderEncoder, serializeToBytes, serializeToString, toByteArray, trimToMaxSize
getContentFormat, toSerializable
protected static final String DEFAULT_CHARSET
protected static final String DEFAULT_FORMAT
protected AbstractCsvLayout(Configuration config, Charset charset, org.apache.commons.csv.CSVFormat csvFormat, String header, String footer)
protected static org.apache.commons.csv.CSVFormat createFormat(String format, Character delimiter, Character escape, Character quote, org.apache.commons.csv.QuoteMode quoteMode, String nullString, String recordSeparator)
public String getContentType()
Layout
getContentType
in interface Layout<String>
getContentType
in class AbstractStringLayout
public org.apache.commons.csv.CSVFormat getFormat()
Copyright © 1999-2018. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.