I am using log4j for my logs. My application has a simple XML configuration file and I need to have in my config file the path for the log file. At the moment, it's another XML configuration file for log4j that contains this:
<log4j:configuration>
<appender name="file" class="org.apache.log4j.FileAppender">
<errorHandler class="org.apache.log4j.helpers.OnlyOnceErrorHandler" />
<param name="file" value="log.out" />
(..........)
(log.out
is the default log which is in the project's directory.) How can I move this configuration into my application's configuration file?