refactored calls to deprecated log4j API