You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by ysuneelreddy <sr...@smarteinc.com> on 2006/07/31 08:03:12 UTC
How we set properties in Log4j.xml...
Hi
Data not inserting in the logging_event_property table only.
Remining two tables working properly..
Plz see this once.
This is my log4j.xml:>......
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="A1" class="org.apache.log4j.db.DBAppender">
<connectionSource 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/smartedb"/>
</connectionSource>
<param name="LocationInfo" value ="true" />
</appender>
<root>
<priority value="info"/>
<appender-ref ref="A1"/>
</root>
</log4j:configuration>
How we set properties to my lof4j.xml.
Tell me why the data not inserting in "logging_event_property "
Anything need in log4j.xml.
Plz help me.
Iam waiting for ur help.
Thanks & Rgds,
Yaramaka SuneelReddy.
Software Engineer,
Smarte Solutions,
ph : + 91 9833022044
Re: How we set properties in Log4j.xml...
Posted by Curt Arnold <ca...@apache.org>.
On Jul 31, 2006, at 1:03 AM, ysuneelreddy wrote:
>
>
> Hi
>
> Data not inserting in the logging_event_property table only.
>
> Remining two tables working properly..
>
> Plz see this once.
>
I've not reviewed that appender, but I'm guessing
logging_event_property is should contain a record for each property
in the mapped diagnostic context (MDC). If you have not set any
properties in the MDC, you should not get any entries in
logging_event_property. Call MDC.put() to add something to the
current thread's MDC if you want to check if the code that would
insert into logging_event_property works successfully.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org