refine the log moudle