internal LoggingConfig Build() { Validate(); if (_customLogger != null) { return(LoggingConfig.Custom(_customLogger)); } return(new LoggingConfig( _logDirectory, _maxBytes, _rollingInterval, _rollOnFileSizeLimit, _logLevel == LogEventLevel.Debug, _messageTemplate)); }