• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to turn off logging info()?  RSS feed

 
ahmet akin
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
Maybe it was a bad practice, but for debug purposes i used java logging system with logger.info() methods. is it possible to disable logging now. since i used it a lot of places, it is kind of hard to process, disable one by one. And what should have i done instead?
thanks.
Sample usage:
in the base class:
protected static Logger logger = Logger.getLogger(MyClass.class.getName());
... and in the claseses inherited from this,
logger.info("Blah blah...");
 
ahmet akin
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for posting previous message without enough searching. The answer is
logger.setLevel(Level.OFF)
for completely shutting off that logger.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!