@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
DEFAULT_STRING_BUILDER_SIZE, MAX_STRING_BUILDER_SIZE
configuration, eventCount, footer, header, LOGGER
ELEMENT_TYPE
Constructor and Description |
---|
CsvParameterLayout(Configuration config,
Charset charset,
org.apache.commons.csv.CSVFormat csvFormat,
String header,
String footer) |
Modifier and Type | Method and Description |
---|---|
static AbstractCsvLayout |
createDefaultLayout() |
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) |
static AbstractCsvLayout |
createLayout(org.apache.commons.csv.CSVFormat format) |
String |
toSerializable(LogEvent event)
Formats the event as an Object that can be serialized.
|
createFormat, getContentType, getFormat
getBytes, getCharset, getFooter, getFooterSerializer, getHeader, getHeaderSerializer, getStringBuilder, getStringBuilderEncoder, requiresLocation, serializeToBytes, serializeToString, toByteArray, trimToMaxSize
encode, getConfiguration, getContentFormat, markEvent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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(value="delimiter") Character delimiter, @PluginAttribute(value="escape") Character escape, @PluginAttribute(value="quote") Character quote, @PluginAttribute(value="quoteMode") org.apache.commons.csv.QuoteMode quoteMode, @PluginAttribute(value="nullString") String nullString, @PluginAttribute(value="recordSeparator") String recordSeparator, @PluginAttribute(value="charset",defaultString="UTF-8") Charset charset, @PluginAttribute(value="header") String header, @PluginAttribute(value="footer") String footer)
Copyright © 1999-2023 The Apache Software Foundation. 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.