Builder<JdbcAppender>
public static class JdbcAppender.Builder<B extends JdbcAppender.Builder<B>> extends AbstractAppender.Builder<B> implements Builder<JdbcAppender>
Constructor | Description |
---|---|
Builder() |
Modifier and Type | Method | Description |
---|---|---|
JdbcAppender |
build() |
Builds the object after all configuration has been set.
|
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.
|
getConfiguration, getLayout, getName, getOrCreateLayout, getOrCreateLayout, isIgnoreExceptions, setConfiguration, withConfiguration, withIgnoreExceptions, withLayout, withName
asBuilder, getFilter, withFilter
public 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()
Builder
build
in interface Builder<B extends JdbcAppender.Builder<B>>
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.