public static void LogVerbose(this IDeveroomLogger logger, Func <string> message, [CallerMemberName] string callerName = "???") { if (logger.IsLogging(TraceLevel.Verbose)) { logger.Log(TraceLevel.Verbose, $"{callerName}: {message()}"); } }
public static void LogDebugException(this IDeveroomLogger logger, Exception ex, string message = "Exception", [CallerMemberName] string callerName = "???") { logger.Log(TraceLevel.Verbose, $"{callerName}: {message}: {ex}"); }
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}"); }
public static void LogVerbose(this IDeveroomLogger logger, string message, [CallerMemberName] string callerName = "???") { logger.Log(TraceLevel.Verbose, $"{callerName}: {message}"); }