/// <summary> /// Submits a diagnostic message to the queue related to performance/benchmarking /// </summary> /// <param name="msg">The message to emit</param> protected void TracePerf(AppMsg msg) { if (TraceEnabled) { Enqueue(msg.WithLevel(SeverityLevel.Benchmark)); } }
/// <summary> /// Submits a diagnostic message to the message queue /// </summary> /// <param name="msg">The source message</param> /// <param name="severity">The diagnostic severity level that, if specified, /// replaces the exising source message severity prior to queue submission</param> protected void Trace(AppMsg msg, SeverityLevel?severity = null) { if (TraceEnabled) { Enqueue(msg.WithLevel(severity ?? SeverityLevel.Babble)); } }