Function ErrorMessages::writeErrorLog

Function Documentation

void ErrorMessages::writeErrorLog()

Writes all accumulated error messages to the error log file.

This function should be called to flush all error messages stored in the errorMessages stringstream to the error log file at once. This approach minimizes disk I/O operations during runtime.