Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Log 4j  RSS feed

 
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!