This week's book giveaway is in the Reactive Progamming forum. We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line! See this thread for details.
I am not able to write log file with specifed location, I have 2 EAR applications deployed in Websphere Application Server 7.0. Each EAR file contian a WAR file inside it. The log files have different path for all the applications. For Example:
Following is the log file path mentioned in the log4j.properties file for all the 3 EAR applications:
The problem is, if i execute any EAR application. all the logs are written in the same log file. Suppose if i execute application EAROne, the logs generated from the application are written in the EAROne.log. Similarly, if i execute applications EARTwo and EARThree, the logs generated from those applications are also written in the same EAROne.log file.
Even i have change the parent class loading settings for the server as below
Servers -> Server Types -> WebSphere application servers -> servername -> General Properties
Server-specific Application settings as
Classloader policy : Multiple
Class loading mode : Classes loaded with local class loader first(parent last).
How to make the applications write their respective logs in their own log files according to the log file paths mentioned in their respective log4j.properties file?
Not Sure if you can write your logs to different log files if you have deployed multiple applications in the same jvm instance in websphere application server. But if you deploy each application in a different jvm instance then it will work.
posted 7 years ago
Thanks for your reply. All applications in same profile, will this make any problem. I hope this will not a problem. Could you please let me know if any alternate solution.
30 seconds to difuse a loaf of bread ... here, use this tiny ad: