Now writing error messages to log (stdout)