refine log4j configuration