Relative paths are used in the log4j.properties file.
How can i find the absolute path programatically where logs are stored?
Relative paths are used in the log4j.properties file.
How can i find the absolute path programatically where logs are stored?
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").