recode the log moudle