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