A file handler that appends.
import java.util.logging.FileHandler; import java.util.logging.Logger; public class Main { public static void main(String[] argv) throws Exception { boolean append = true; FileHandler handler = new FileHandler("my.log", append); Logger logger = Logger.getLogger("com.mycompany"); logger.addHandler(handler); } }