<div dir="ltr">Hi - need some help figuring out how to properly setup logback config to Oracle DB.<div>I've managed to get it to work, but only getting the records in the DB when closing the logger.</div><div>I am actually using logback through the Metrics library (<a href="http://metrics.codahale.com">metrics.codahale.com</a>), so using the logger through a metrics reporter object.</div>
<div>But the end result is I can see the records (test records for now!) in the DB only at the end of the test when I stop the metrics reporter.</div><div>Assuming this might be related to the config I'm using:</div>
<div>
<div><appender name="DatabaseAppender" class="ch.qos.logback.classic.db.DBAppender"></div><div> <connectionSource class="ch.qos.logback.core.db.DriverManagerConnectionSource"></div>
<div> <driverClass>oracle.jdbc.OracleDriver</driverClass></div><div> <url>jdbc:oracle:thin:@192.168.1.1:1521:XE</url></div><div> <user>abcde</user></div><div> <password>abcde</password></div>
<div> </connectionSource></div><div></appender></div></div><div><br></div><div style>Is there a way for me to change the config so each record inserted is committed right away?</div><div style><br></div><div style>
Thanks,</div><div style>Horia</div><div><span><font color="#888888"><div style="font-family:arial,sans-serif;background-color:rgb(255,255,255)"><div><div><div>
</div></div></div></div></font></span>
</div></div>