Redirecting stderr to log file.