logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Womack <mwom...@bevocal.com>
Subject RE: Please
Date Fri, 24 Jan 2003 21:21:05 GMT
Thank you, Rich.  I added this to the log4j wiki faq at:

http://nagoya.apache.org/wiki/apachewiki.cgi?Log4JFrequentlyAskedQuestions

I want to emphasize, that ANYONE can add to the wiki pages.  Not just log4j
committers.

thanks,
-Mark


> -----Original Message-----
> From: Rich Bagley [mailto:rbagley@hbs.edu]
> Sent: Friday, January 24, 2003 12:16 PM
> To: Log4J Users List
> Subject: RE: Please
> 
> 
> This works in log4j.1.2.7
> 
> <?xml version="1.0" encoding="UTF-8" ?>
> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
> 
> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
> 
>     <appender name="jdbcAppender"
> class="org.apache.log4j.jdbc.JDBCAppender">
>         <param name="URL" 
> value="jdbc:oracle:thin:@sd1.hbs.edu:1521:sc1" />
>         <param name="Driver" 
> value="oracle.jdbc.driver.OracleDriver" />
>         <param name="User" value="user" />
>         <param name="Password" value="password" />
>         <layout class="org.apache.log4j.PatternLayout">
>             <param name="ConversionPattern"
>                 value="INSERT INTO LOGGING_SAMPLES_TEST (log_date,
> log_level, location, message) VALUES ( '%d{ISO8601}','%p', 
> '%C;%L', '%m' )"
> />
>         </layout>
>     </appender>
> 
>     <appender name="STDOUT" class="org.apache.log4j.ConsoleAppender">
>         <layout class="org.apache.log4j.PatternLayout">
>             <param name="ConversionPattern"
>                 value="%d{ISO8601} %p (%C;%L) %m%n"/>
>         </layout>
>     </appender>
> 
>     <logger name="logging.simple.jdbcLogger">
>         <level value="debug"/>
>         <appender-ref ref="jdbcAppender"/>
>     </logger>
> 
>     <root>
>         <priority value="error"/>
>         <appender-ref ref="STDOUT"/>
>     </root>
> 
> </log4j:configuration>
> 
> >> -----Original Message-----
> >> From: Amandeep Midha [mailto:Amandeep.Midha@itsprojects.com]
> >> Sent: Friday, January 24, 2003 3:04 PM
> >> To: log4j-user@jakarta.apache.org
> >> Subject: Please
> >>
> >>
> >>
> >> Can you send me sample xml to configure JDBC appender?
> >>
> >> thanks in advance
> >>
> >> regards,
> >> Amandeep
> >>
> >>
> >> --
> >> To unsubscribe, e-mail:
> >> <mailto:log4j-user-unsubscribe@jakarta.apache.org>
> >> For additional commands, e-mail:
> >> <mailto:log4j-user-help@jakarta.apache.org>
> >>
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>


Mime
View raw message