@Plugin(name="CsvParameterLayout", category="Core", elementType="layout", printObject=true) public class CsvParameterLayout extends AbstractCsvLayout
Best used with:
logger.debug(new ObjectArrayMessage(1, 2, "Bob"));
DEFAULT_CHARSET, DEFAULT_FORMAT
DEFAULT_STRING_BUILDER_SIZE
footer, header, LOGGER
ELEMENT_TYPE
Constructor and Description |
---|
CsvParameterLayout(Charset charset,
org.apache.commons.csv.CSVFormat csvFormat,
String header,
String footer) |
Modifier and Type | Method and Description |
---|---|
static AbstractCsvLayout |
createDefaultLayout() |
static AbstractCsvLayout |
createLayout(org.apache.commons.csv.CSVFormat format) |
static AbstractCsvLayout |
createLayout(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
getBytes, getCharset, getStringBuilder, toByteArray
getContentFormat, getFooter, getHeader
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContentFormat, getFooter, getHeader
public static AbstractCsvLayout createDefaultLayout()
public static AbstractCsvLayout createLayout(org.apache.commons.csv.CSVFormat format)
@PluginFactory public static AbstractCsvLayout createLayout(@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-2017 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.