------------------------------------------------------------------------------------------------------------------------------------ This function builds up the log string and outputs it to various places based on the display flags (m_displayFlags). ------------------------------------------------------------------------------------------------------------------------------------