On Wed, Dec 13, 2017 at 4:23 AM, [email protected] <[email protected]>
wrote:

> Hi,
>
> My project uses custom-connection pool and wants to control connection
> close.
>
> But log4j2's JDBC appender uses its own Closer.close() method call in the
> JdbcDatabaseManager.java
>
> Is there any way to get the control for close() method to my project code
> instead of log4j2?
>
> Will it be okay to create own custom-plugin instead of using JDBCAppender?
>

Absolutely, feel free to create any plugin you want :-)

Also note that we have a new module that uses Apache Commons DBCP2 for
connection pooling: log4j-jdbc-dbcp2.

Otherwise, how do you propose to customize this behavior? A callback?

Gary


>
> Please help.
>
> Thanks,
> Gaurav
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to