Make log4j appender attachable