brunorozendo / log4jdbc-log4j2

Automatically exported from code.google.com/p/log4jdbc-log4j2
48 stars 39 forks source link

When logging only the slow queries make it possible to also log the class name and line number #43

Open peteclewlow opened 5 years ago

peteclewlow commented 5 years ago

When only slow queries must be logged rather than all queries the following setting is used in logback.xml : <logger name="jdbc.sqltiming" level="WARN"/> . However when slow queries are then logged the class name and line number of the slow query are not logged. Class name and line number are very handy information to locate the code causing the slow query. Please make it possible to also log the class name and line number in this case.