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