Serilog.SplunkLoggingConfigurationExtensions
Fluent configuration methods for Logger configuration
public static LoggerConfiguration EventCollector(this LoggerSinkConfiguration configuration, string splunkHost, string eventCollectorToken, string uriPath = "services/collector/event", string source = "", string sourceType = "", string host = "", string index = "", LogEventLevel restrictedToMinimumLevel = 0, IFormatProvider formatProvider = null, bool renderTemplate = true, bool renderMessage = true, int batchIntervalInSeconds = 2, int batchSizeLimit = 100, int? queueLimit = default, HttpMessageHandler messageHandler = null, LoggingLevelSwitch levelSwitch = null, SubSecondPrecision subSecondPrecision = 3, bool includeHost = false)
Adds a sink that writes log events as to a Splunk instance via the HTTP Event Collector.
public static LoggerConfiguration EventCollector(this LoggerSinkConfiguration configuration, string splunkHost, string eventCollectorToken, ITextFormatter jsonFormatter, string uriPath = "services/collector/event", LogEventLevel restrictedToMinimumLevel = 0, int batchIntervalInSeconds = 2, int batchSizeLimit = 100, int? queueLimit = default, HttpMessageHandler messageHandler = null, LoggingLevelSwitch levelSwitch = null)
Adds a sink that writes log events as to a Splunk instance via the HTTP Event Collector.
public static LoggerConfiguration EventCollector(this LoggerSinkConfiguration configuration, string splunkHost, string eventCollectorToken, CustomFields fields, string uriPath = "services/collector/event", string source = "", string sourceType = "", string host = "", string index = "", LogEventLevel restrictedToMinimumLevel = 0, IFormatProvider formatProvider = null, bool renderTemplate = true, bool renderMessage = true, int batchIntervalInSeconds = 2, int batchSizeLimit = 100, int? queueLimit = default, HttpMessageHandler messageHandler = null, LoggingLevelSwitch levelSwitch = null, SubSecondPrecision subSecondPrecision = 3, bool includeHost = false)
Adds a sink that writes log events as to a Splunk instance via the HTTP Event Collector.