Adding in-memory log4j appender to verify the logging operations