Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Incomplete
-
2.0.7
-
None
-
None
Description
Create a variable that will be usable within a log4j.xml file for specifying the location of the file.
In windows specifying the path using ${basedir} currently results in a variable like this:
${basedir}=C:\dev\workspace\project
log4j requires that you specify the path to the log file like so (even under windows):
<appender name="FILE_APPENDER"
class="org.apache.log4j.RollingFileAppender">
<param name="File" value="c:/dev/workspace/project/file.log" />
<param name="Append" value="true" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d [%t] %-5p [[[[%c]]]] (((%F:%L))) __%C__ - %m%n"/>
</layout>
</appender>
So the ${basedir.log4j} variable needs to equate to:
${basedir.log4j}=c:/dev/workspace/project/file.log