I am dumping log files (log4j) under /logs/MyApp
directory on my linux server and its working fine. Application (EAR) is built using Jenkins and I am writing junit test cases for that. The problem is log4j file appender's location won't be pointing to jenkins server filesystem and is relative to my linux server.
Log4j.appender.App.File = /logs/MyApp/AppLogs.log
This is resulting in errors when test cases are executed from jenkins as log4j file location is not present.
log4j:ERROR setFile(null,true) call failed. java.io.FileNotFoundException: /logs/MyApp/Applogs.log (No such file or directory)
How can i configure log4j to work with jenkins without changing current configurations that are already setup for my production environment.