permaculture playing cards*
The moose likes Other Open Source Projects and the fly likes Log4j properties 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 "Log4j properties" Watch "Log4j properties" New topic

Log4j properties

mansoor akthar

Joined: May 31, 2007
Posts: 1
Hi All

In my log4j props file I specify the location where the logs have to be written.

For tomcat i use

This above works fine for tomcat.

For weblogic,websphere and oracle app server, i need to get to the folder where my appplication.ear resides.
I have tried several ways, but no Luck....
Any help will be appreciated.

Thank You
It is sorta covered in the JavaRanch Style Guide.
subject: Log4j properties
Similar Threads
Path to locate properties file of log4j
Any body use Log4J with Tomcat?
can I set the path in my code to refer a properties file?
Logging info on server side