public Diagnostics(String processName) { Info = new DiagnosticsLevel(processName); Debug = new DiagnosticsLevel(processName); Error = new DiagnosticsLevel(processName); Telemetry = new DiagnosticsLevel(processName); }
public PerformanceDiagnostics(DiagnosticsLevel diagnosticsLevel, String customText, String parameter) { DiagnosticsLevel = diagnosticsLevel; Parameter = parameter; CustomText = customText; }
public static void LogUnsupported(this DiagnosticsLevel diagnosticsLevel, String location, Type value) { diagnosticsLevel.Log($"Not supported value in {location}.", "Value", value.FullName); }
public static void LogUnexpected(this DiagnosticsLevel diagnosticsLevel, String location, Exception exception) { diagnosticsLevel.Log($"Unexpected exception in {location}.", exception); }
public static void LogUnexpected(this DiagnosticsLevel diagnosticsLevel, String location, String param, Object value) { diagnosticsLevel.Log($"Unexpected situation in {location}.", param, value.ToString()); }
public static void LogUnsupported(this DiagnosticsLevel diagnosticsLevel, String location, Object value) { diagnosticsLevel.Log($"Not supported value in {location}.", "Value", value.ToString()); }