Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ExceptionTelemetryTraceMessage" /> class.
 /// </summary>
 /// <param name="telemetry">Telemetry item to be converted. </param>
 public ExceptionTelemetryTraceMessage(ExceptionTelemetry telemetry)
 {
     this.Category    = telemetry.SeverityLevel == null ? "--" : SeverityToGlimpseCategory.SeverityToCategory((SeverityLevel)telemetry.SeverityLevel);
     this.Message     = "Exception: " + telemetry.Exception.GetType();
     this.IndentLevel = 0;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TraceTelemetryTraceMessage" /> class.
 /// </summary>
 /// <param name="telemetry">Telemetry item to be converted. </param>
 public TraceTelemetryTraceMessage(TraceTelemetry telemetry)
 {
     this.Category    = telemetry.SeverityLevel == null ? "--" : SeverityToGlimpseCategory.SeverityToCategory((SeverityLevel)telemetry.SeverityLevel);
     this.Message     = telemetry.Message;
     this.IndentLevel = 0;
 }