logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prakash Kadam" <pka...@nulinkinc.com>
Subject Help me for ODBCAppender
Date Tue, 22 Feb 2005 04:49:38 GMT
Hi All
 I am using the ODBC stuff of logg4cxx.and facing the problems.i am using the postgresql at
server side.
So how can write xml configuration File for ODBCAppender.
i write the configurator but still having the error's check out this
 
 
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'>
<appender name="JDBC" class="ODBCAppender">
        <param name="connection" value="dbname=it2005 user=postgres password='' host=ocean"/>
        <param name="URL" value="unixodbc:postgresql:ocean/5432:it2005"/>
        <param name="User" value="postgres"/>
        <param name="Password" value="''"/>
        <layout class="org.apache.log4j.PatternLayout">
                <param name="ConversionPattern" value="INSERT INTO jdbctest VALUES (%d
%c %p %m)"/>
        </layout>
        <param name="buffer" value="200" />
        <param name="commit" value="true" />
</appender>
<root>
        <appender-ref ref="JDBC" />
</root>
</log4j:configuration>

Mime
View raw message