logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Stauffer" <stauffer.ja...@gmail.com>
Subject Re: configuration of DBAppender with Log4j....
Date Wed, 26 Jul 2006 13:34:20 GMT
Look at sample log4j.xml files.  You don't have your appender attached
to any logger.

On 7/26/06, ysuneelreddy <sreddy@smarteinc.com> wrote:
> Hi
>
> This is suneel
>
> Iam new to Log4j, we r using Log4j-1.3alpha-8 // Net Beans (Tomcat) // MySQL
>
> My target is inserting log messages in the database.
>
> For this I want to use DbAppender'.
>
> For this I download the Log1.3alpha-8.jar, log4j-db-1.3alpha-8.jar.
>
>
>
> I wrote log4j.xml in this way.
>
>
>
> <?xml version="1.0" encoding="UTF-8" ?>
>
> <!DOCTYPE configuration >
>
>
>
> <log4j: configuration xmlns:log4j="  <http://jakarta.apache.org/log4j/>
> http://jakarta.apache.org/log4j/ ">
>
>    <plugin name="Appender" class="org.apache.log4j.db.DBAppender">
>
>       <connection Source
> class="org.apache.log4j.db.DriverManagerConnectionSource">
>
>         <param name="password" value="smarte911"/>
>
>         <param name="user" value="smarte2"/>
>
>         <param name="driverClass" value="com.mysql.jdbc.Driver"/>
>
>         <param name="url" value="jdbc:mysql://192.168.1.225:3306/reddy"/>
>
>       </connectionSource>
>
>     </plugin>
>
>
>
>    <root>
>
>       <level value="debug"/>
>
>    </root>
>
> </log4j:configuration>
>
>
>
> Just I did
>
> After I put .jar in lib && tomcat/commons/class..
>
> It is not working
>
> Plz tell me ..
>
> For this what I do.
>
> Iam waiting for ur reply.
>
>
>
> Thanks & Rgds,
>
>
>
> Yaramaka SuneelReddy.
>
> Software Engineer,
>
> Smarte Solutions,
>
> ph : + 91 9833022044
>
>
>
>
>
>
>


-- 
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message