Development of error logging