Issue Type: Bug Bug
Affects Versions: 1.1.2
Assignee: Logback dev list
Components: logback-classic
Created: 02/Jun/14 10:18 PM
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?)

Project: logback
Priority: Critical Critical
Reporter: Jason Klapste
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira