Hi Ceki,<br>I have a question about the LoggingEvent object.<br>I&#39;d like to log some messages by &quot;building&quot; (populating constructor) of LoggingEvent object, then log it with my appenders. <br>I saw some sample code on line and what I have at the moment is this:<br>
 <br>Logger log;<br>LoggingEvent event;<br>Object[] args = {&quot;test&quot;, &quot;test2&quot;};  //&lt;-- I&#39;m not sure exactly what this is for?<br>        <br>event = new LoggingEvent(&quot;class&quot;, (Logger) LoggerFactory.getLogger(&quot;SimpleSocketServer&quot;),<br>
                                                              Level.toLevel(&quot;DEBUG&quot;), &quot;test message&quot;, null, args);<br><br>log = (Logger) LoggerFactory.getLogger(&quot;testClassName&quot;);<br>log.callAppenders(event);<br>
<br>This works with my &quot;CONSOLE&quot; appender and I can see messages (with the passed values) printed.<br>I have also a &quot;DB&quot; - database appender, to which I&#39;d like to write as well, but something doesn&#39;t work....<br>
I see a couple of &quot;initialization&quot; log messages in the database, (like port and waiting for clients to connect etc.)<br>but not the one I&#39;m building myself, even though as I stated above I can see it in the console.<br>
What am I doing wrong? <br><br>Here is part of my config file:<br><br>&lt;configuration&gt;<br>   <br> &lt;appender name=&quot;DB&quot; class=&quot;ch.qos.logback.classic.db.DBAppender&quot;&gt;<br>    &lt;connectionSource class=&quot;ch.qos.logback.core.db.DataSourceConnectionSource&quot;&gt;<br>
      &lt;dataSource class=&quot;com.mchange.v2.c3p0.ComboPooledDataSource&quot;&gt;<br>         &lt;driverClass&gt;com.mysql.jdbc.Driver&lt;/driverClass&gt;<br>          &lt;jdbcUrl&gt;jdbc:mysql://localhost:3306/logging&lt;/jdbcUrl&gt;<br>
         &lt;user&gt;greg&lt;/user&gt;<br>         &lt;password&gt;greg&lt;/password&gt;<br>      &lt;/dataSource&gt;<br>    &lt;/connectionSource&gt;<br>  &lt;/appender&gt;<br><br>&lt;!-- here I have simple console appender called CONSOLE--&gt;<br>
<br>  &lt;root&gt;<br>    &lt;level value =&quot;DEBUG&quot;/&gt;<br>    &lt;appender-ref ref=&quot;CONSOLE&quot; /&gt;<br>    &lt;appender-ref ref=&quot;DB&quot; /&gt;<br>  &lt;/root&gt;  <br>&lt;/configuration&gt;<br><br>
<br>UPDATE:<br>I just did a little test and I added an HTML FILE appender. I see all messages there too, just like in CONSOLE appender case.<br>but still nothing in the database except for the initialization messages. <br>
Any suggestions?<br>Thanks<br>Gregory.<br><br>