struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Mick.Knut...@wellsfargo.com>
Subject RE: [ot]Excluding BeanUtils from Log4J? How do I do this?
Date Tue, 21 Dec 2004 20:05:23 GMT
Sorry. I am still getting debug from BeanUtils which is my whole issue. I want debug from everything
BUT BeanUtils.

--------------------
Mick Knutson
Wells Fargo Business Direct
(415) 222-1020

"This message may contain confidential and/or privileged information. If you are not the addressee
or authorized to receive this for the addressee, you must not use, copy, disclose, or take
any action based on this message or any information herein. If you have received this message
in error, please advise the sender immediately by reply e-mail and delete this message. Thank
you for your cooperation."
--------------------



-----Original Message-----
From: Hubert Rabago [mailto:hrabago@gmail.com]
Sent: Tuesday, December 21, 2004 11:54 AM
To: Struts Users Mailing List
Subject: Re: [ot]Excluding BeanUtils from Log4J? How do I do this?


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


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


Mime
View raw message