src/Serilog.Sinks.TCP/SplunkLoggingConfigurationExtensions.cs
/// <summary>
/// Adds a sink that writes log events as to a Splunk instance via TCP.
/// </summary>
/// <param name="loggerConfiguration">The logger config</param>
/// <param name="connectionInfo"></param>
/// <param name="formatter">Custom formatter to use if you e.g. do not want to use the JsonFormatter.</param>
/// <param name="restrictedToMinimumLevel">The minimum log event level required in order to write an event to the sink.</param>
/// <returns></returns>
Adds a sink that writes log events as to a Splunk instance via TCP.
Adds a sink that writes log events as to a Splunk instance via TCP .
public static LoggerConfiguration SplunkViaTcp(
            this LoggerSinkConfiguration loggerConfiguration,
            SplunkTcpSinkConnectionInfo connectionInfo,
            ITextFormatter formatter,
            LogEventLevel restrictedToMinimumLevel = LevelAlias.Minimum)
        {
            var sink = new TcpSink(connectionInfo, formatter);
            return loggerConfiguration.Sink(sink, restrictedToMinimumLevel);
        }
public static LoggerConfiguration SplunkViaTcp ( this LoggerSinkConfiguration loggerConfiguration , SplunkTcpSinkConnectionInfo connectionInfo , ITextFormatter formatter , LogEventLevel restrictedToMinimumLevel = LevelAlias . Minimum ) { var sink = new TcpSink ( connectionInfo , formatter ) ; return loggerConfiguration . Sink ( sink , restrictedToMinimumLevel ) ; }
Adds a sink that writes log events as to a Splunk instance via TCP.
Adds a sink that writes log events as to a Splunk instance via TCP .
None
LoggerSinkConfiguration
this
connectionInfo
SplunkTcpSinkConnectionInfo
None
formatter
ITextFormatter
Custom formatter to use if you e.g. do not want to use the JsonFormatter.
Custom formatter to use if you e . g . do not want to use the JsonFormatter .
restrictedToMinimumLevel
LogEventLevel
The minimum log event level required in order to write an event to the sink.
The minimum log event level required in order to write an event to the sink .
loggerConfiguration
The logger config
The logger config