aspose file tools*
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: 15286
    
    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 - A Test Data Generation Platform
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Log4J - Different Log files for different parts of app
 
Similar Threads
Log4j created file not able to delete while testing my application??
How to separate Console and / or File appenders in Log4J?
log4j Question
Log4j created file not able to delete while testing my application??
wierd logging issue with my app