Trim is useless
no need for rolling appender in tests
Code less, create more
Most of code can be simplified. That's an example