The Artima Developer Community
Sponsored Link

Java Buzz Forum
Grrr. Trying to turn off logging messages :)

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
dion

Posts: 5028
Nickname: dion
Registered: Feb, 2003

Dion Almaer is the Editor-in-Chief for TheServerSide.com, and is an enterprise Java evangelist
Grrr. Trying to turn off logging messages :) Posted: Dec 12, 2004 8:45 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by dion.
Original Post: Grrr. Trying to turn off logging messages :)
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
Latest Java Buzz Posts
Latest Java Buzz Posts by dion
Latest Posts From techno.blog(Dion)

Advertisement
I am running a bunch of tests, and logging messages are spewing all over. Some are annoying INFO messages that I don't care about. Everything is plugged into commons-logging -> log4j. I have the log level turned up for the package that is spewing this information. What is up? I make sure that commons logging is being found in the right classloader. I had a problem where it was loaded in a parent classloader, and hence couldn't Classloader.getResource*("log4j.xml") to get the right file (another annoying problem to hunt down). That wasn't the problem, so I make sure that the log4j.xml was being found Yup it was happy. Hmm. So why is it logging an element from FooBar.class even though it was in a package that I have told not to log that level? It turned out that the class in question was an abstract base class, which had a getClass() call, when it got the logger object. So, although it looks like that package/class was doing the dead, it was really MY class which inherited from it. I turned the log level up for my own package, and it went away. I wish I could get the source for the offending package and not make it log in that way ;) Another hour wasted!

Read: Grrr. Trying to turn off logging messages :)

Topic: Covariant return types, we like you but were doing okay without you Previous Topic   Next Topic Topic: [Dec 3, 2004 06:31 PST] 10 Links

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use