Let us start with an easier problem. Can you try using a custom appender and observe the results? Creating a customer appender is easy or you can just subclass FileAppender.