• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

need separate log file for some classes in the application

 
Raaja Gotluru
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In my application log4j is already implemented and I want to create a separate log file for only three classes (ie rulejob, ruletask, ruleprocess classes) the rest should be logged in the old log file. Can anyone help me in doing this.

existing implementation is



I did like this in extra to the present implementation



but this is creating logs in RuleJob.log, only for rulejob class. If i have to log ruletask.java and ruleprocess.java logs also in the same log file (rulejob.log). What else I need to configure inorder to achieve this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic