Note that there are some explanatory texts on larger screens.

plurals
  1. POLogback - C3P0 and HSQLDB
    primarykey
    data
    text
    <p>I'm trying to get LogBack to use a HSQLDB with C3P0. I'm stuck with this configuration at the moment given my current environment. I have a large investment with Log4J code and will also need to use the SLF4J Log4J Adapter. When I try a simple logging program it's getting stuck in the logger configuration stage. Here is my <code>logback.xml</code>: </p> <pre><code>&lt;configuration&gt; &lt;appender name="DB" class="ch.qos.logback.classic.db.DBAppender"&gt; &lt;connectionSource class="ch.qos.logback.core.db.DataSourceConnectionSource"&gt; &lt;dataSource class="com.mchange.v2.c3p0.ComboPooledDataSource"&gt; &lt;driverClass&gt;org.hsqldb.jdbcDriver&lt;/driverClass&gt; &lt;jdbcUrl&gt;jdbc:hsqldb:hsql://localhost:9001/mid_logs&lt;/jdbcUrl&gt; &lt;user&gt;sa&lt;/user&gt; &lt;password&gt;sa&lt;/password&gt; &lt;/dataSource&gt; &lt;/connectionSource&gt; &lt;/appender&gt; &lt;root level="debug"&gt; &lt;appender-ref ref="DB" /&gt; &lt;/root&gt; &lt;/configuration&gt; </code></pre> <p>My classpath is:</p> <pre><code>bin/.;lib/hsqldb.jar;lib/log4j-over-slf4j-1.5.8.jar;lib/logback-access-0.9.17.jar;lib/logback-classic-0.9.17.jar;lib/logback-core-0.9.17.jar;lib/slf4j-api-1.5.8.jar;lib/slf4j-log4j12-1.5.8.jar;lib/c3p0-0.9.1.2.jar </code></pre> <p>Here is a snippet of my code: <br/></p> <pre><code>System.out.println("Starting"); Logger logger = Logger.getLogger(TestLogging.class); System.out.println("got Logger"); </code></pre> <p>The 'Starting' appears in the console output, but nothing else.</p> <p>Any help would be appreciated!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload