Added layout to format the output for Appender.