Two Laptop Bag*
The moose likes Other Open Source Projects and the fly likes need separate log file for some classes in the application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "need separate log file for some classes in the application" Watch "need separate log file for some classes in the application" New topic
Author

need separate log file for some classes in the application

Raaja Gotluru
Ranch Hand

Joined: Mar 02, 2010
Posts: 108
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: need separate log file for some classes in the application
 
Similar Threads
Log4j in Eclipse Vs Log4j Outside Eclipse
Can Log4j read two properties?
thread safe logging in a servlet
[Log4j] Defining multiple loggers
BEA 7.0 & log4j