add logs file and output redirection