/**
* File Appender that creates a new file with the same if that file gets removed by any process
*/
public class FileRecreatingFileAppender<E> extends FileAppender<E> {
@Override
public void writeOut(E event) throws IOException {
if (!Files.exists(Paths.get(getFile()))) {
super.openFile(getFile()); }
super.writeOut(event);
}
}