Exemple #1
0
        public static void Debug <T>(this INDLogger logger, T message, Exception exception, IFormatProvider formatter, params object[] args) where T : class
        {
            if (logger == null)
            {
                throw new ArgumentNullException(logger.ToString());
            }
            if (formatter == null)
            {
                throw new ArgumentNullException(logger.ToString());
            }

            logger.Log(NDLogLevel.Debug, message, exception, formatter, args);
        }
        public NDLogBuilder(NDLogLevel logLevel, INDLogger logger)
        {
            if (logger == null)
            {
                throw new ArgumentNullException(logger.ToString());
            }

            _logger = logger;
            _data   = new LogData
            {
                LogLevel       = logLevel,
                FormatProvider = CultureInfo.InvariantCulture
            };
        }