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, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]
> 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, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to