Minimal changes for Log4J