See writeToErrorLog()