tags:

views:

21

answers:

1

Relative paths are used in the log4j.properties file.

How can i find the absolute path programatically where logs are stored?

+1  A: 

i think one way is like this:

since the path is relative to system property "user.dir"

so relative path = ./app.log becomes {user.dir}/app.log

get user.dir as System.getproperty("user.dir").

daedlus