This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Log4J - Different Log files for different parts of app

 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic