Ejemplo n.º 1
0
        internal LoggingConfig Build()
        {
            Validate();

            if (_customLogger != null)
            {
                return(LoggingConfig.Custom(_customLogger));
            }

            return(new LoggingConfig(
                       _logDirectory,
                       _maxBytes,
                       _rollingInterval,
                       _rollOnFileSizeLimit,
                       _logLevel == LogEventLevel.Debug,
                       _messageTemplate));
        }