[logback-user] Help Logback and postgreSQL

Mohammad Haider mohammadh at lashpoint.com
Thu Mar 4 15:49:03 CET 2010


Hi,

I have created three tables for logback according to documentation.

I have the following config. file:
<?xml version="1.0" encoding="UTF-8"?>
<configuration debug="true" scan="true" scanPeriod="30 seconds">
  <appender name="DB" class="ch.qos.logback.classic.db.DBAppender">  
    <connectionSource  
class="ch.qos.logback.core.db.DriverManagerConnectionSource">
              <driverClass>org.postgresql.Driver</driverClass>
              <url>jdbc:postgresql://localhost:5432/tips_log</url>
              <user>postgres</user>
              <password>test</password>
    </connectionSource>
  </appender>

  <root level="debug">
    <appender-ref ref="DB"/>
  </root>
</configuration>

In my code I have put simple logger.debug("DB test");.
However, I did not see any log data in the tables.

Can anyone please help about this issue? Why am I not getting any log 
data in the table?
-- 
Thanks
* Mohammad Firoj Haider*




More information about the Logback-user mailing list