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

DBAppender doesn't log events with -1 as a line number

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • 1.1.2
    • logback-classic
    • None

    Description

      DBAppender does not store events that have "-1" as the line number.

      The following two log lines are written to a log file yet only the second one ends up in the database:

      15:18:18.079 DEBUG c.t.m.u.BaseEntity->invoke():-1 - test msg 1
      15:18:18.097 INFO  c.t.m.u.Migrate->invoke0():-2 - test msg 2
      

      Appender configuration:

          <appender name="DB" class="ch.qos.logback.classic.db.DBAppender">
              <connectionSource class="ch.qos.logback.core.db.JNDIConnectionSource">
                  <jndiLocation>java:comp/env/jdbc/logging</jndiLocation>
              </connectionSource>
          </appender>
      

      The line numbers are due to executing groovy scripts with logging to logback (not sure if the negative line numbers is an issue that can be addressed by loback or not?)

      Attachments

        Activity

          People

            logback-dev Logback dev list
            jklap Jason Klapste
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: