hoyacom / log4jdbc-log4j2

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

Support logging of commit/rollback invocations on connections. #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. enable full logging
2. open a connection
3. call connection.commit or connection.rollback

What is the expected output? What do you see instead?

"commit" or "rollback" in accordance with invoked method 

What version of the product are you using? On what operating system?

org.bgee.log4jdbc-log4j2:log4jdbc-log4j2-jdbc4.1:1.16

Please provide any additional information below.

Original issue reported on code.google.com by robert.s...@googlemail.com on 17 Jul 2014 at 9:50

GoogleCodeExporter commented 8 years ago
commit and rollback are already logged: with the Marker 'LOG4JDBC_AUDIT' in the 
log4j2 implementation, with the logger 'jdbc.audit' in the slf4j 
implementation. You simply need to activate this marker/logger (see the 
sections 'Set up your logger' and 'Usage with Log4j 2' in the documentation for 
more details)

Original comment by frederic...@gmail.com on 24 Jul 2014 at 11:03