Layout<String>
, Encoder<String>
, StringLayout
@Plugin(name="CsvParameterLayout", category="Core", elementType="layout", printObject=true) public class CsvParameterLayout extends AbstractCsvLayout
Best used with:
logger.debug(new ObjectArrayMessage(1, 2, "Bob"));
AbstractStringLayout.Builder<B extends AbstractStringLayout.Builder<B>>, AbstractStringLayout.Serializer, AbstractStringLayout.Serializer2
DEFAULT_CHARSET, DEFAULT_FORMAT
configuration, eventCount, footer, header, LOGGER
DEFAULT_STRING_BUILDER_SIZE, MAX_STRING_BUILDER_SIZE
ELEMENT_TYPE
Constructor | Description |
---|---|
CsvParameterLayout(Configuration config,
Charset charset,
org.apache.commons.csv.CSVFormat csvFormat,
String header,
String footer) |
Modifier and Type | Method | Description |
---|---|---|
static AbstractCsvLayout |
createDefaultLayout() |
|
static AbstractCsvLayout |
createLayout(org.apache.commons.csv.CSVFormat format) |
|
static AbstractCsvLayout |
createLayout(Configuration config,
String format,
Character delimiter,
Character escape,
Character quote,
org.apache.commons.csv.QuoteMode quoteMode,
String nullString,
String recordSeparator,
Charset charset,
String header,
String footer) |
|
String |
toSerializable(LogEvent event) |
Formats the event as an Object that can be serialized.
|
createFormat, getContentType, getFormat
encode, getConfiguration, getContentFormat, markEvent
getBytes, getCharset, getFooter, getFooterSerializer, getHeader, getHeaderSerializer, getStringBuilder, getStringBuilderEncoder, serializeToBytes, serializeToString, toByteArray, trimToMaxSize
getContentFormat
public CsvParameterLayout(Configuration config, Charset charset, org.apache.commons.csv.CSVFormat csvFormat, String header, String footer)
public static AbstractCsvLayout createDefaultLayout()
public static AbstractCsvLayout createLayout(org.apache.commons.csv.CSVFormat format)
@PluginFactory public static AbstractCsvLayout createLayout(@PluginConfiguration Configuration config, @PluginAttribute(value="format",defaultString="Default") String format, @PluginAttribute("delimiter") Character delimiter, @PluginAttribute("escape") Character escape, @PluginAttribute("quote") Character quote, @PluginAttribute("quoteMode") org.apache.commons.csv.QuoteMode quoteMode, @PluginAttribute("nullString") String nullString, @PluginAttribute("recordSeparator") String recordSeparator, @PluginAttribute(value="charset",defaultString="UTF-8") Charset charset, @PluginAttribute("header") String header, @PluginAttribute("footer") String footer)
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.