Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-713

DBAppenderBase closes connection-object after each insert

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.0.6
    • logback-core
    • None

    Description

      I'm using logback for logging to database using DBAppender. I've configured a connection pool of 20 connections. The problem is that DBAppenderBase closes the Connection-objects after each insert, which is undesired as the connection pool implementation should take care of the life cycle of the connections.

      public abstract class DBAppenderBase<E> extends UnsynchronizedAppenderBase<E> {
      ...
      ...
      public void append(E eventObject) {
      ...
      ...
      } finally {
            DBHelper.closeConnection(connection);
      }
      ...
      

      Attachments

        Activity

          People

            logback-dev Logback dev list
            heikkim Heikki Malkamäki
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: