Support old log4j