@Plugin(name="CsvLogEventLayout", category="Core", elementType="layout", printObject=true) public class CsvLogEventLayout extends AbstractCsvLayout
DEFAULT_CHARSET, DEFAULT_FORMAT
DEFAULT_STRING_BUILDER_SIZE
footer, header, LOGGER
ELEMENT_TYPE
Modifier | Constructor and Description |
---|---|
protected |
CsvLogEventLayout(Charset charset,
org.apache.commons.csv.CSVFormat csvFormat,
String header,
String footer) |
Modifier and Type | Method and Description |
---|---|
static CsvLogEventLayout |
createDefaultLayout() |
static CsvLogEventLayout |
createLayout(org.apache.commons.csv.CSVFormat format) |
static CsvLogEventLayout |
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 CsvLogEventLayout createDefaultLayout()
public static CsvLogEventLayout createLayout(org.apache.commons.csv.CSVFormat format)
@PluginFactory public static CsvLogEventLayout 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.