public static class JdbcAppender.Builder<B extends JdbcAppender.Builder<B>> extends AbstractAppender.Builder<B> implements Builder<JdbcAppender>
| Constructor and Description |
|---|
JdbcAppender.Builder() |
| Modifier and Type | Method and Description |
|---|---|
JdbcAppender |
build()
Builds the object after all configuration has been set.
|
Layout<? extends Serializable> |
getLayout()
Deprecated.
|
Layout<? extends Serializable> |
getOrCreateLayout()
Deprecated.
|
Layout<? extends Serializable> |
getOrCreateLayout(Charset charset)
Deprecated.
|
B |
setBufferSize(int bufferSize)
If an integer greater than 0, this causes the appender to buffer log events and flush whenever the buffer
reaches this size.
|
B |
setColumnConfigs(ColumnConfig... columnConfigs)
Information about the columns that log event data should be inserted into and how to insert that data.
|
B |
setColumnMappings(ColumnMapping... columnMappings) |
B |
setConnectionSource(ConnectionSource connectionSource)
The connections source from which database connections should be retrieved.
|
B |
setTableName(String tableName)
The name of the database table to insert log events into.
|
B |
withLayout(Layout<? extends Serializable> layout)
Deprecated.
|
getConfiguration, getName, isIgnoreExceptions, setConfiguration, withConfiguration, withIgnoreExceptions, withNameasBuilder, getFilter, withFilterpublic B setConnectionSource(ConnectionSource connectionSource)
public B setBufferSize(int bufferSize)
public B setTableName(String tableName)
public B setColumnConfigs(ColumnConfig... columnConfigs)
public B setColumnMappings(ColumnMapping... columnMappings)
public JdbcAppender build()
Builderbuild in interface Builder<JdbcAppender>@Deprecated public Layout<? extends Serializable> getLayout()
getLayout in class AbstractAppender.Builder<B extends JdbcAppender.Builder<B>>@Deprecated public B withLayout(Layout<? extends Serializable> layout)
withLayout in class AbstractAppender.Builder<B extends JdbcAppender.Builder<B>>@Deprecated public Layout<? extends Serializable> getOrCreateLayout()
getOrCreateLayout in class AbstractAppender.Builder<B extends JdbcAppender.Builder<B>>@Deprecated public Layout<? extends Serializable> getOrCreateLayout(Charset charset)
getOrCreateLayout in class AbstractAppender.Builder<B extends JdbcAppender.Builder<B>>Copyright © 1999-2017 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.