struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hubert Rabago <hrab...@gmail.com>
Subject Re: [ot]Excluding BeanUtils from Log4J? How do I do this?
Date Tue, 21 Dec 2004 19:54:24 GMT
How did it not work?  Are you seeing info-, warn-, or debug-level logs
from BeanUtils?  Or are you seeing error-level logs and you want to
suppress even those?  Or are the logs coming from other classes from
the beanutils package, but not necessarily the BeanUtils class itself?

Hubert


On Tue, 21 Dec 2004 13:48:59 -0600, Mick.Knutson@wellsfargo.com
<Mick.Knutson@wellsfargo.com> wrote:
> It didn't work. What am I doing wrong here:
> 
> ================================================
> <?xml version="1.0" encoding="UTF-8" ?>
> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
> 
> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
> 
>         <appender name="A1" class="org.apache.log4j.FileAppender">
>             <param name="File"   value="A1.log" />
>             <param name="Append" value="false" />
>             <layout class="org.apache.log4j.PatternLayout">
>                 <param name="ConversionPattern" value="%t %-5p %c{2} - %m%n"/>
>             </layout>
>         </appender>
> 
>         <appender name="STDOUT" class="org.apache.log4j.ConsoleAppender">
>                 <layout class="org.apache.log4j.PatternLayout">
>                    <param name="ConversionPattern"
>                           value="%d %-5p [%t] %C{2} (%F:%L) - %m%n"/>
>                 </layout>
>         </appender>
> 
>     <category name="org.apache.commons.beanutils.BeanUtils">
>           <priority value="error" />
>         </category>
> 
> 
>         <category name="org.apache.log4j.xml">
>           <priority value="info" />
>           <appender-ref ref="A1" />
>         </category>
> 
>         <root>
>            <priority value ="info" />
>            <appender-ref ref="STDOUT" />
>         </root>
> 
> </log4j:configuration>
> 
> --------------------
> Mick Knutson
> 
> -----Original Message-----
> From: Hubert Rabago [mailto:hrabago@gmail.com]
> Sent: Tuesday, December 21, 2004 11:16 AM
> To: Struts Users Mailing List
> Subject: Re: [ot]Excluding BeanUtils from Log4J? How do I do this?
> 
> For the BeanUtils class itself, try something like:
> 
>         <category name="org.apache.commons.beanutils.BeanUtils">
>           <priority value="error" />
>         </category>
> 
> If you want the same priority to apply to all classes under the
> beanutils package, don't include the BeanUtils class name.
> 
> Hubert
> 
> On Tue, 21 Dec 2004 13:10:48 -0600, Mick.Knutson@wellsfargo.com
> <Mick.Knutson@wellsfargo.com> wrote:
> > [ot]Excluding BeanUtils from Log4J? How do I do this?
> > I am using the log4j.xml descriptor and really need to exclude this class. Can anyone
help please?
> >
> > --------------------
> > Mick Knutson

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


Mime
View raw message