Two Laptop Bag
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
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply 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
Ranch Hand

Joined: Jul 11, 2001
Posts: 15229

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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Log4J - Different Log files for different parts of app
 
Similar Threads
How to separate Console and / or File appenders in Log4J?
wierd logging issue with my app
log4j Question
Log4j created file not able to delete while testing my application??
Log4j created file not able to delete while testing my application??