This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes Configuring Log4j for an entire domain/container Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Configuring Log4j for an entire domain/container" Watch "Configuring Log4j for an entire domain/container" New topic
Author

Configuring Log4j for an entire domain/container

das govender
Greenhorn

Joined: Mar 12, 2012
Posts: 16
Hi
how does one go about setting up log 4j for an entire domain/container or all the applications in a domain/container.

tks,
daslan
das govender
Greenhorn

Joined: Mar 12, 2012
Posts: 16
I have sorted this out. For glassfish add path for log.xml to .../domains/domain/config.log4j.xml and then add this to server config that you can do on the admin console via JVM settings. Restart. Add configureWatch() using a servlet context listener to a web app and deploy. This will pick up change in the intreval you specify. Deploy other apps and they will by default use this.
 
Consider Paul's rocket mass heater.
 
subject: Configuring Log4j for an entire domain/container
 
Similar Threads
How to get a .com domain for free?
50 Gmail Invites
sendRedirect has jsessionid appended. how to remove ?
remove a domain
Session conflict with servers on the same IP and different ports