cmd: Redirect error output to log files.