You can also do:

log4j.logger.hivemind=WARN
log4j.logger.org.apache.hivemind=WARN

I believe that will do what you want.

-----Original Message-----
From: Adam Zimowski [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 31, 2006 12:12 PM
To: Tapestry users
Subject: Re: log4j appender for
org.apache.hivemind.impl.XmlModuleDescriptorProvider

I'm so silly sometimes...

I just changed rootLogger to ERROR and now Hivemind is happy, but
isn't logging debugs.

You know your stuff James.

Thanks a Lot !

Adam

On 3/31/06, Adam Zimowski <[EMAIL PROTECTED]> wrote:
> Heh... Sure enough, rootLogger wasn't configured.
>
> So now I'm getting debugs from Hivemind out to the console. Anyway to
> configure root logger so it just ignores the output?
>
> kind of like  > /dev/null in linux ?
>
> Adam
>
> On 3/31/06, James Carman <[EMAIL PROTECTED]> wrote:
> > Try this:
> > log4j.rootLogger=DEBUG,A1
> >
> > -----Original Message-----
> > From: Adam Zimowski [mailto:[EMAIL PROTECTED]
> > Sent: Friday, March 31, 2006 11:45 AM
> > To: Tapestry users
> > Subject: Re: log4j appender for
> > org.apache.hivemind.impl.XmlModuleDescriptorProvider
> >
> > #
> > # Configures Log4j for 'OpenDating' jUnit testing, where selected
> > # log levels are re-directed to standard output. If you prefer to
redirect
> > # jUnit output to a file, feel free to change this as necessary.
> > #
> > log4j.logger.app=DEBUG,A1
> > log4j.additivity.app=false
> > log4j.appender.A1=org.apache.log4j.ConsoleAppender
> > log4j.appender.A1.layout=org.apache.log4j.PatternLayout
> > log4j.appender.A1.layout.ConversionPattern=%-4r %C{1} [%M] %-5p - %m%n
> >
> > log4j.logger.session=DEBUG,A2
> > log4j.additivity.session=false
> > log4j.appender.A2=org.apache.log4j.ConsoleAppender
> > log4j.appender.A2.layout=org.apache.log4j.PatternLayout
> > log4j.appender.A2.layout.ConversionPattern=%-4r %C{1} [%M] %-5p - %m%n
> >
> > log4j.logger.threads=DEBUG,A3
> > log4j.additivity.threads=false
> > log4j.appender.A3=org.apache.log4j.ConsoleAppender
> > log4j.appender.A3.layout=org.apache.log4j.PatternLayout
> > log4j.appender.A3.layout.ConversionPattern=%-4r %C{1} [%M] %-5p - %m%n
> >
> > Thanks for looking into this.
> >
> > Adam
> >
> > On 3/31/06, James Carman <[EMAIL PROTECTED]> wrote:
> > > I think you'll have to paste it in.  I just need the one that you're
using
> > > during unit testing.
> > >
> > > -----Original Message-----
> > > From: Adam Zimowski [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, March 31, 2006 11:36 AM
> > > To: Tapestry users
> > > Subject: Re: log4j appender for
> > > org.apache.hivemind.impl.XmlModuleDescriptorProvider
> > >
> > > In WEB-INF/ I have two configuration files. One is read when
> > > application is running or when testing via HtmlUnit, the other is read
> > > when testing with JUnit (I like to see console output when doing JUnit
> > > on POJOs).
> > >
> > > Please, see attached
> > >
> > > Adam
> > >
> > > On 3/31/06, James Carman <[EMAIL PROTECTED]> wrote:
> > > > My JUnit tests log just fine using HiveMind.  What does your
> > configuration
> > > > file look like?
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: Adam Zimowski [mailto:[EMAIL PROTECTED]
> > > > Sent: Friday, March 31, 2006 11:26 AM
> > > > To: Tapestry users
> > > > Subject: Re: log4j appender for
> > > > org.apache.hivemind.impl.XmlModuleDescriptorProvider
> > > >
> > > > Yeah, everything is logging just fine. It's just that when I invoke
> > > > JUnit on objects which are povided by Hivemind, I'm getting this
> > > > annoying warning that the appender for Hivemind is not setup.
> > > >
> > > > I can live with this warning it's just that I kind of like to have
> > > > things perfectly working, you know...
> > > >
> > > > Adam
> > > >
> > > > On 3/31/06, James Carman <[EMAIL PROTECTED]> wrote:
> > > > > Do you have your log4j.properties file on your JUnit test
classpath?
> > > Are
> > > > > other things being logged properly?
> > > > >
> > > > > -----Original Message-----
> > > > > From: Adam Zimowski [mailto:[EMAIL PROTECTED]
> > > > > Sent: Friday, March 31, 2006 10:51 AM
> > > > > To: Tapestry users
> > > > > Subject: Re: log4j appender for
> > > > > org.apache.hivemind.impl.XmlModuleDescriptorProvider
> > > > >
> > > > > I'm still on old-fashioned property file...
> > > > >
> > > > > So I saw your attachment. How does that configure appender for
> > > > > Hivemind? I don't see any reference to Hivemind in there?
> > > > >
> > > > > Adam
> > > > >
> > > > > On 3/30/06, Diogenes Moreira <[EMAIL PROTECTED]> wrote:
> > > > > > log4j.propeties or log4j.xml are in classpath??
> > > > > >
> > > > > > I'am attaching a example
> > > > > >
> > > > > > saludos.
> > > > > >
> > > > > > 2006/3/30, Adam Zimowski <[EMAIL PROTECTED]>:
> > > > > > > Hi,
> > > > > > >
> > > > > > > My DAOs are provided by Hivemind so I do Registry lookup. When
I
> > > test
> > > > > > > them thru JUnit, I get a log4j error about missing Hivemind
> > logger.
> > > Is
> > > > > > > there a standard log4j configuration I should have setup for
> > > Hivemind?
> > > > > > >
> > > > > > > log4j:WARN No appenders could be found for logger
> > > > > > > (org.apache.hivemind.impl.XmlModuleDescriptorProvider).
> > > > > > > log4j:WARN Please initialize the log4j system properly.
> > > > > > >
> > > > > > > Adam
> > > > > > >
> > > > > > >
> > > ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > > > > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Diogenes A Moreira
> > > > > > Project Manager
> > > > > >
> > > > > > PLEASE NOTE
> > > > > > This message, along with any attachments, may be confidential or
> > > > > > legally privileged.  It is intended only for the named
person(s),
> > who
> > > > > > is/are the only authorized recipients. If this message has
reached
> > you
> > > > > > in error, kindly destroy it without review and notify the sender
> > > > > > immediately. Thank you for your help.
> > > > > >
> > > > > >
> > > > > >
> > ---------------------------------------------------------------------
> > > > > > 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]
> > > > >
> > > > >
> > > >
> > > >
---------------------------------------------------------------------
> > > > 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]
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > 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]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to