Details
-
Bug
-
Resolution: Unresolved
-
Critical
-
None
-
1.1.2
-
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?)