示例#1
0
        public void LogDebug(int level, string message)
        {
            var logLevel = Settings.LogLevel;

            if (logLevel >= 0 && level > logLevel)
            {
                return;
            }
            logger.LogDebug(level, message);
        }
示例#2
0
        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);
        }