Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Log 4j

 
Anand Shivadas
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have 5 loggers (Debug, error, all, info, warning), I’m using my own wrapper classes to use log 4j, when I try to write to log file (separately for each logger), it’s writing to all loggers and duplicating the log statements
Here is the example,
DebugLogger.log(priority, “Log statement” , then it writes this log statement to DebugLogger more than once and to other loggers as well
Am’ I missing any thing, please help me.
Thanks,
Anand
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic