You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/01/13 04:33:00 UTC

[jira] [Commented] (LOG4J2-2185) Add a simple JDBC DriverManager-based ConnectionSource that uses JDBC's DriverManager#getConnection(String, String, String)

    [ https://issues.apache.org/jira/browse/LOG4J2-2185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16324961#comment-16324961 ] 

ASF subversion and git services commented on LOG4J2-2185:
---------------------------------------------------------

Commit 2eb136ba0c7c09c03fd2cba56687bc4e77efde43 in logging-log4j2's branch refs/heads/master from [~garydgregory]
[ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=2eb136b ]

[LOG4J2-2185] Add a simple JDBC DriverManager-based ConnectionSource
that uses JDBC's DriverManager#getConnection(String, String, String).
Record add.

> Add a simple JDBC DriverManager-based ConnectionSource that uses JDBC's DriverManager#getConnection(String, String, String)
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: LOG4J2-2185
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2185
>             Project: Log4j 2
>          Issue Type: New Feature
>          Components: Appenders
>            Reporter: Gary Gregory
>            Assignee: Gary Gregory
>             Fix For: 2.10.1
>
>
> Add a simple DriverManagerConnectionSource that uses JDBC's {{DriverManager#getConnection(String, String, String)}}
> {code:java}
> /**
>  * A {@link ConnectionSource} that uses a JDBC connection string, a user name, and a password to call
>  * {@link DriverManager#getConnection(String, String, String)}.
>  * <p>
>  * This plugin does not provide any connection pooling unless it is available through the connection string and driver
>  * itself. This handy to get you off the ground without having to deal with JNDI.
>  * </p>
>  */
> @Plugin(name = "DriverManager", category = Core.CATEGORY_NAME, elementType = "connectionSource", printObject = true)
> public final class DriverManagerConnectionSource implements ConnectionSource
> {code}
> This connection source also supports passing in properties for more complex configurations.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)