Send errors to log file