Update code for log4j.