wood burning stoves 2.0*
The moose likes Other Open Source Projects and the fly likes Log4J - Different Log files for different parts of app 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 "Log4J - Different Log files for different parts of app" Watch "Log4J - Different Log files for different parts of app" New topic
Author

Log4J - Different Log files for different parts of app

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

I am just getting into log4j and am using it for logging in my SWING application. I would like to have sepearte log files for different parts of my application. I was wondering if someone could give me some pointers on the best way to manage this.
Can I set different log files in the properties file? And if so, how do I access the different log files inside the app if my Logger object only opens 1 properties file.
Or do I just need to create different properties files for each part of my app and each pointing to a different log file?
Thanks for any tips.


GenRocket - Experts at Building Test Data
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Log4J - Different Log files for different parts of app