public void LogDebug(int level, string message) { var logLevel = Settings.LogLevel; if (logLevel >= 0 && level > logLevel) { return; } logger.LogDebug(level, message); }
public void LogDebug(string category, int level, string message) { var categoryLevel = !string.IsNullOrEmpty(category) ? Settings.GetLogLevel(category) : null; var effectiveLevel = categoryLevel ?? Settings.LogLevel; if (level > effectiveLevel) { return; } logger.LogDebug(category, level, message); }