Added log file redirection