add time and enable log redirection