You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by "Ron Grabowski (JIRA)" <ji...@apache.org> on 2008/01/31 18:45:07 UTC

[jira] Created: (LOG4NET-141) Add CreateConnection method to AdoNetAppender to allow subclasses to have control of IDbConnection.

Add CreateConnection method to AdoNetAppender to allow subclasses to have control of IDbConnection.
---------------------------------------------------------------------------------------------------

                 Key: LOG4NET-141
                 URL: https://issues.apache.org/jira/browse/LOG4NET-141
             Project: Log4net
          Issue Type: Improvement
          Components: Appenders
            Reporter: Ron Grabowski
            Assignee: Ron Grabowski
            Priority: Minor


The IDbConnection is created in the private method InitializeDatabaseConnection. Use the Connection property to set the connection object does not work when a reconnect is required. Add a CreateConnection method to allow sub-classes that handle creating their own connection.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (LOG4NET-141) Add CreateConnection method to AdoNetAppender to allow subclasses to have control of IDbConnection.

Posted by "Lowe, Loren (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LOG4NET-141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12894141#action_12894141 ] 

Lowe, Loren commented on LOG4NET-141:
-------------------------------------


Hi,
                I have been looking at the log4net api and DO NOT see how to set the Connection property directly (as the documentation states). I do not have access to the Connection string property directly, but want to just set the connection   i.e.  AdoNetAppender.Connection = MyApp.MyDal.Connection.

Can this be done?




The information contained in this message may be privileged and confidential and protected from disclosure.  If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer.  Under Florida law, e-mail addresses are public records. If you do not want your e-mail address released in response to a public-records request, do not send electronic mail to this entity. Instead, contact this office by phone or in writing.


> Add CreateConnection method to AdoNetAppender to allow subclasses to have control of IDbConnection.
> ---------------------------------------------------------------------------------------------------
>
>                 Key: LOG4NET-141
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-141
>             Project: Log4net
>          Issue Type: Improvement
>          Components: Appenders
>            Reporter: Ron Grabowski
>            Assignee: Ron Grabowski
>            Priority: Minor
>             Fix For: 1.2.11
>
>         Attachments: LOG4NET-141_AdoNetAppender.patch
>
>
> The IDbConnection is created in the private method InitializeDatabaseConnection. Use the Connection property to set the connection object does not work when a reconnect is required. Add a CreateConnection method to allow sub-classes that handle creating their own connection.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (LOG4NET-141) Add CreateConnection method to AdoNetAppender to allow subclasses to have control of IDbConnection.

Posted by "Ron Grabowski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LOG4NET-141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ron Grabowski updated LOG4NET-141:
----------------------------------

    Fix Version/s: 1.2.11

> Add CreateConnection method to AdoNetAppender to allow subclasses to have control of IDbConnection.
> ---------------------------------------------------------------------------------------------------
>
>                 Key: LOG4NET-141
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-141
>             Project: Log4net
>          Issue Type: Improvement
>          Components: Appenders
>            Reporter: Ron Grabowski
>            Assignee: Ron Grabowski
>            Priority: Minor
>             Fix For: 1.2.11
>
>         Attachments: LOG4NET-141_AdoNetAppender.patch
>
>
> The IDbConnection is created in the private method InitializeDatabaseConnection. Use the Connection property to set the connection object does not work when a reconnect is required. Add a CreateConnection method to allow sub-classes that handle creating their own connection.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (LOG4NET-141) Add CreateConnection method to AdoNetAppender to allow subclasses to have control of IDbConnection.

Posted by "Ron Grabowski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LOG4NET-141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ron Grabowski resolved LOG4NET-141.
-----------------------------------

    Resolution: Fixed

Fixed in r628555.

> Add CreateConnection method to AdoNetAppender to allow subclasses to have control of IDbConnection.
> ---------------------------------------------------------------------------------------------------
>
>                 Key: LOG4NET-141
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-141
>             Project: Log4net
>          Issue Type: Improvement
>          Components: Appenders
>            Reporter: Ron Grabowski
>            Assignee: Ron Grabowski
>            Priority: Minor
>         Attachments: LOG4NET-141_AdoNetAppender.patch
>
>
> The IDbConnection is created in the private method InitializeDatabaseConnection. Use the Connection property to set the connection object does not work when a reconnect is required. Add a CreateConnection method to allow sub-classes that handle creating their own connection.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (LOG4NET-141) Add CreateConnection method to AdoNetAppender to allow subclasses to have control of IDbConnection.

Posted by "Ron Grabowski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LOG4NET-141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ron Grabowski updated LOG4NET-141:
----------------------------------

    Attachment: LOG4NET-141_AdoNetAppender.patch

Added CreateConnection method that accepts the resolve connection Type and the resolved connection string. Refactored duplicate code for closing/disposing the IDbCommand IDbConnection objects into DIsposeCommand/Connection.

> Add CreateConnection method to AdoNetAppender to allow subclasses to have control of IDbConnection.
> ---------------------------------------------------------------------------------------------------
>
>                 Key: LOG4NET-141
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-141
>             Project: Log4net
>          Issue Type: Improvement
>          Components: Appenders
>            Reporter: Ron Grabowski
>            Assignee: Ron Grabowski
>            Priority: Minor
>         Attachments: LOG4NET-141_AdoNetAppender.patch
>
>
> The IDbConnection is created in the private method InitializeDatabaseConnection. Use the Connection property to set the connection object does not work when a reconnect is required. Add a CreateConnection method to allow sub-classes that handle creating their own connection.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.