TraceMessage method

void TraceMessage(
  1. TraceFlags traceType,
  2. String logEntry
)
Logs the specified String to the TraceListener if tracing is enabled. Kind of trace entry. The entry to log.

Implementation

void TraceMessage(enumerations.TraceFlags traceType, String logEntry) {
  if (this.IsTraceEnabledFor(traceType)) {
    String traceTypeStr = traceType.toString();
    String logMessage = EwsUtilities.FormatLogMessage(traceTypeStr, logEntry);
    this.TraceListener.Trace(traceTypeStr, logMessage);
  }
}