Writes a message followed by a line terminator to the trace listeners in the Listeners collection if a condition is true.