I need to store log files in C:\.DS\logs
in windows and in /.DS/logs
in Linux.
I found the way to do that: I need to use System.setProperty("logs.dir", ...)
and use ${logs.dir}
in log4j config file.
Yet, the problem is, log4j is already initialized at this point and it doesn't pick up my system property.
Is there a more straightforward way to do this, whithout me needing to manually re-init log4j?
Thanks