Struggler 0 Newbie Poster

Hi I am new to log4j.xml which is used to log the informations. Currently, I am giving the absolute path for each log file in param tag value.
eg :
appender name="FA" class="org.apache.log4j.DailyRollingFileAppender"> param name="DatePattern" value="'_'yyyyMMdd"/>
param name="File" value="D:/logFiles/GPreprocessor.log"/> layout class="com.dnb.genericpreprocessor.common.log.AppXMLLayout"/> /appender>

I do not want to give "GPreprocessor.log" directly.Actually that file name is dynamic based on my project. For ex:- Suppose i run ABC.java program. So file name should be D:/logFiles/ABC.log.In the similar way when i run XYZ.java the log file name should be D:/logFiles/XYZ.log

Please provide the valuable inputs or code snippets to resolve this issue.