Reduce scope of log4j