Layout<String>, Encoder<String>, StringLayout@Plugin(name="CsvLogEventLayout", category="Core", elementType="layout", printObject=true) public class CsvLogEventLayout extends AbstractCsvLayout
AbstractStringLayout.Builder<B extends AbstractStringLayout.Builder<B>>, AbstractStringLayout.Serializer, AbstractStringLayout.Serializer2DEFAULT_CHARSET, DEFAULT_FORMATconfiguration, eventCount, footer, header, LOGGERDEFAULT_STRING_BUILDER_SIZE, MAX_STRING_BUILDER_SIZEELEMENT_TYPE| Modifier | Constructor | Description |
|---|---|---|
protected |
CsvLogEventLayout(Configuration config,
Charset charset,
org.apache.commons.csv.CSVFormat csvFormat,
String header,
String footer) |
| Modifier and Type | Method | Description |
|---|---|---|
static CsvLogEventLayout |
createDefaultLayout() |
|
static CsvLogEventLayout |
createLayout(org.apache.commons.csv.CSVFormat format) |
|
static CsvLogEventLayout |
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, getFormatencode, getConfiguration, getContentFormat, markEventgetBytes, getCharset, getFooter, getFooterSerializer, getHeader, getHeaderSerializer, getStringBuilder, getStringBuilderEncoder, serializeToBytes, serializeToString, toByteArray, trimToMaxSizegetContentFormatprotected CsvLogEventLayout(Configuration config, Charset charset, org.apache.commons.csv.CSVFormat csvFormat, String header, String footer)
public static CsvLogEventLayout createDefaultLayout()
public static CsvLogEventLayout createLayout(org.apache.commons.csv.CSVFormat format)
@PluginFactory public static CsvLogEventLayout 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.