コード例 #1
0
 public static void LogVerbose(this IDeveroomLogger logger, Func <string> message, [CallerMemberName] string callerName = "???")
 {
     if (logger.IsLogging(TraceLevel.Verbose))
     {
         logger.Log(TraceLevel.Verbose, $"{callerName}: {message()}");
     }
 }
コード例 #2
0
 public static void LogDebugException(this IDeveroomLogger logger, Exception ex, string message = "Exception", [CallerMemberName] string callerName = "???")
 {
     logger.Log(TraceLevel.Verbose, $"{callerName}: {message}: {ex}");
 }
コード例 #3
0
 public static void LogVerboseException(this IDeveroomLogger logger, IMonitoringService monitoringService, Exception ex, string message = "Exception", [CallerMemberName] string callerName = "???")
 {
     monitoringService.MonitorError(ex, isFatal: false);
     logger.Log(TraceLevel.Verbose, $"{callerName}: {message}: {ex}");
 }
コード例 #4
0
 public static void LogVerbose(this IDeveroomLogger logger, string message, [CallerMemberName] string callerName = "???")
 {
     logger.Log(TraceLevel.Verbose, $"{callerName}: {message}");
 }