I am using Log4j as logging framework in a project I am working on. I have the following situation: Log4j is configured to write the logs into a log file. At some point, thi
Make sure you can declare this line in your log4j file
log4j.appender.rollingFile.File=D:/myapp/mylog.log
If you already declared it, you log file can delete or replace as you like. Then you rerun your program and new log file is created in this path.