[ajug-members] log4j problem
Travis Bailey
mail at travisbailey.com
Tue Jan 2 20:27:17 EST 2007
likewise...
to turn off other packages, just set their logging level higher or to none
<logger name="com">
<level value="fatal"/>
</logger>
<logger name="org">
<level value="none"/>
</logger>
<logger name="com.mycompany.mypackage">
<level value="info"/>
</logger>
Travis Bailey
Travis Bailey Photography
www.travisbailey.com
404.664.7782 (c)
"The greater the artist the greater the doubt. Perfect confidence is granted to the less talented as a consolation prize." - Robert Hughes
----- Original Message ----
From: Bill Siggelkow <bsiggelkow at mac.com>
To: General AJUG membership forum (100-200 messages/month) <ajug-members at ajug.org>
Sent: Tuesday, January 2, 2007 6:41:42 PM
Subject: Re: [ajug-members] log4j problem
(2 minute answer)
The following will set up logging for your classes
<logger name="com.mycompany.mypackage">
<level value="info"/>
</logger>
For further details see http://wiki.apache.org/logging-log4j/Log4jXmlFormat
Bill Siggelkow
bsiggelkow at mac.com
AIM: siggelkowb
Home: 770-457-8854
Mobile: 770-354-2584
On Jan 2, 2007, at 3:30 PM, Barnes, Mike wrote:
I need to be able to only log messages from my classes and not those from other packages. I can not seem to find any information as to how to do this. Also, I am using a log4j.xml file for configuration. Could someone point me in the right direction.
Thanks
Mike Barnes
_______________________________________________
ajug-members mailing list
ajug-members at ajug.org
http://www.ajug.org/mailman/listinfo/ajug-members
_______________________________________________
ajug-members mailing list
ajug-members at ajug.org
http://www.ajug.org/mailman/listinfo/ajug-members
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.ajug.org/pipermail/ajug-members/attachments/20070102/e5eff111/attachment.html
More information about the ajug-members
mailing list