replace log4f in modules.