private static HttpClient ConfigureClient(SplunkLogProviderSection configuration)
        {
            _client.BaseAddress = new Uri(configuration.BaseUrl);
            _client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Splunk", configuration.Token);

            return(_client);
        }
 /// <summary>
 /// Initializes new instance of <see cref="SplunkLogger"/>.
 /// </summary>
 public SplunkLogger(SplunkLogProviderSection configuration)
 {
     _configuration = configuration;
 }
        /// <summary>
        /// Initializes new instance of <see cref="SplunkLogProvider"/>.
        /// </summary>
        /// <param name="configuration">Instance of <see cref="SplunkLogProviderSection"/>.</param>
        public SplunkLogProvider(SplunkLogProviderSection configuration)
        {
            _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));

            _client = ConfigureClient(_configuration);
        }