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="hostAddresss">The Splunk host that is configured for UDP logging</param>
/// <param name="port">The TCP port</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>
/// <remarks>TODO: Add link to splunk configuration and wiki</remarks>
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 .
[Obsolete("Use the overload accepting a connection info object instead. This overload will be removed.", false)]
        public static LoggerConfiguration SplunkViaTcp(
            this LoggerSinkConfiguration loggerConfiguration,
            IPAddress hostAddresss,
            int port,
            LogEventLevel restrictedToMinimumLevel = LevelAlias.Minimum,
            IFormatProvider formatProvider = null,
             bool renderTemplate = true)
        {
            var sink = new TcpSink(hostAddresss, port, formatProvider, renderTemplate);
            return loggerConfiguration.Sink(sink, restrictedToMinimumLevel);
        }
[ Obsolete ( " " , false ) ] public static LoggerConfiguration SplunkViaTcp ( this LoggerSinkConfiguration loggerConfiguration , IPAddress hostAddresss , int port , LogEventLevel restrictedToMinimumLevel = LevelAlias . Minimum , IFormatProvider formatProvider = null , bool renderTemplate = true ) { var sink = new TcpSink ( hostAddresss , port , 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
hostAddresss
IPAddress
The Splunk host that is configured for UDP logging
The Splunk host that is configured for UDP logging
port
int
The TCP port
The TCP port
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
remarks
Add link to splunk configuration and wiki
Add link to splunk configuration and wiki