Timestamp and append errors to log file