This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Websphere and the fly likes custom logging in websphere 7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "custom logging in websphere 7" Watch "custom logging in websphere 7" New topic
Author

custom logging in websphere 7

John Robert
Ranch Hand

Joined: Jun 17, 2008
Posts: 39
Ranchers,

I am looking to implement the following logging functionality in websphere 7. I am using log4j for logging, using a log4j.configuration file and all my logs are written to the SystemOut.log of that app server(Its a distributed app deployed on multiple app servers). Now I don't want to log to SystemOut.log but to a custom log file like Application.log. I am a little lost here because now I cant have one log4j.properties file(because if I use a rolling file appender in log4j.properties), the log folder of each app server varies.
For example for app server1 the log folder is
<WAS_ROOT>/logs/appserver1
and for app server2 the log folder is
<WAS_ROOT>/logs/appserver2

I am a little lost here. How do i configure each app server's logging?

Seems like this is a problem many people should have hit into but couldn't figure out a solution.

Any help would be appreciated.

Thanks,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: custom logging in websphere 7
 
Similar Threads
Log message in SystemOut.log in WAS5.1x using Sun's logging API
Trace of admin console
Sun's Logger to log message in App Server log (SystemOut.log in WAS)
Configuring the Business Logs into a separate log file other than SystemOut.log
logging in websphere