• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question: How to let different loggers write to different log files?

 
Yongping Wang
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Say, I have two different loggers in a class, A and B. Now I like to see any log message generated from A is written into a.log and any message from B goes to b.log.
It seems the log4j doesn't support it (via configuration file-log4j.properties)
Any comments?
Thanks
Y.W
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic