File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Products
»
JBoss
Author
How to get log4j directory path
Rohit Alwar
Greenhorn
Joined: Oct 03, 2010
Posts: 3
posted
Oct 03, 2010 00:37:24
0
Hi,
How we can get the absolute path of log directory in Java program. I am using
jboss
server and the configuration is as follow
For log4j.xml
<param name="File" value="${mydir.logdir}/mylog.xml" />
Jboss run.bat entry
run -c local -Dmydir.logdir=c:\logs
Jaikiran Pai
Marshal
Joined: Jul 20, 2005
Posts: 8142
52
I like...
posted
Oct 03, 2010 23:54:34
1
run -c local -Dmydir.logdir=c:\logs
Since you are passing the absolute path as a system property, you should be able to get it as follows:
String logLocation = System.getProperty("mydir.logdir");
[
My Blog
] [
JavaRanch Journal
]
Rohit Alwar
Greenhorn
Joined: Oct 03, 2010
Posts: 3
posted
Oct 05, 2010 00:39:40
0
Thanks It's working
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: How to get log4j directory path
Similar Threads
Not sure of this line [path-to-jboss]
Hot deployment problem
Error While Starting JBoss 5.1.0 GA!!!
Jboss not starting aka shutting down
linux beginner to conifg the jboss
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter