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="restrictedToMinimumLevel">The minimum log event level required in order to write an event to the sink.</param>
/// <param name="formatProvider">Supplies culture-specific formatting information, or null.</param>
/// <param name="renderTemplate">If true, the message template is rendered</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,
            LogEventLevel restrictedToMinimumLevel = LevelAlias.Minimum,
            IFormatProvider formatProvider = null,
            bool renderTemplate = true)
        {
            var sink = new TcpSink(connectionInfo, formatProvider, renderTemplate);
            return loggerConfiguration.Sink(sink, restrictedToMinimumLevel);
        }
public static LoggerConfiguration SplunkViaTcp ( this LoggerSinkConfiguration loggerConfiguration , SplunkTcpSinkConnectionInfo connectionInfo , LogEventLevel restrictedToMinimumLevel = LevelAlias . Minimum , IFormatProvider formatProvider = null , bool renderTemplate = true ) { var sink = new TcpSink ( connectionInfo , formatProvider , renderTemplate ) ; 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
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 .
formatProvider
IFormatProvider
Supplies culture-specific formatting information, or null.
Supplies culture - specific formatting information or null .
renderTemplate
bool
If true, the message template is rendered
If true the message template is rendered
loggerConfiguration
The logger config
The logger config