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