> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 21, 2004 1:05 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: [ot]Excluding BeanUtils from Log4J? How do I do this?
>
>
> Sorry. I am still getting debug from BeanUtils which is my
> whole issue. I want debug from everything BUT BeanUtils.
<category name="com.wellsFargo.blah"> <!-- or if it's not wellsFargo, whatever
it starts with. -->
<priority value="debug" />
</category>
Everything else to error.
I know with the properties version you can set the default priority. Sounds
like your default priority is debug.
I use BeanUtils, and log4j. This is my setup using the properties:
log4j.rootLogger=INFO, console
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.layout=org.apache.log4j.PatternLayout
log4j.appender.console.layout.ConversionPattern=%d [%t] %-5p %c.%m%n
log4j.logger.com.sssc=DEBUG
This last line sets everything in debug mode, while the log4j.rootLogger
defaults everything to INFO level.
I don't know how to convert this to XML for you though.....
>
> --------------------
> 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:[EMAIL PROTECTED]
> 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, [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]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]