Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Annie Russell   on Dec 27 In Java Category.

  
Question Answered By: Phoebe Brown   on Dec 27

I think you need to make a wrapper around your logger. Log4j maybe let you to programatically  enable/disable logging, but by creating a wrapper you can handle your future requiremnets(that now you can't see them) better and easily.
I refer you to the chapter 17 of The J2EE Architect's Handbook written by Derek C. Ashmore for writing a wrapper around your logger. You can find the PDF version of this book from the www.theserverside.com .

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Enable/Disable logging programatically Or get search suggestion and latest updates.