@@ -28,9 +28,6 @@ namespace Serilog
28
28
/// </summary>
29
29
public static class SplunkLoggingConfigurationExtensions
30
30
{
31
- internal const string DefaultOutputTemplate =
32
- "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level}] {Message}{NewLine}{Exception}" ;
33
-
34
31
internal const string DefaultSource = "" ;
35
32
internal const string DefaultSourceType = "" ;
36
33
internal const string DefaultHost = "" ;
@@ -48,7 +45,6 @@ public static class SplunkLoggingConfigurationExtensions
48
45
/// <param name="sourceType">The source type of the event</param>
49
46
/// <param name="host">The host of the event</param>
50
47
/// <param name="restrictedToMinimumLevel">The minimum log event level required in order to write an event to the sink.</param>
51
- /// <param name="outputTemplate">The output template to be used when logging</param>
52
48
/// <param name="formatProvider">Supplies culture-specific formatting information, or null.</param>
53
49
/// <param name="renderTemplate">If true, the message template will be rendered</param>
54
50
/// <param name="batchIntervalInSeconds">The interval in seconds that the queue should be instpected for batching</param>
@@ -66,7 +62,6 @@ public static LoggerConfiguration EventCollector(
66
62
string host = DefaultHost ,
67
63
string index = DefaultIndex ,
68
64
LogEventLevel restrictedToMinimumLevel = LevelAlias . Minimum ,
69
- string outputTemplate = DefaultOutputTemplate ,
70
65
IFormatProvider formatProvider = null ,
71
66
bool renderTemplate = true ,
72
67
int batchIntervalInSeconds = 2 ,
@@ -75,7 +70,6 @@ public static LoggerConfiguration EventCollector(
75
70
LoggingLevelSwitch levelSwitch = null )
76
71
{
77
72
if ( configuration == null ) throw new ArgumentNullException ( nameof ( configuration ) ) ;
78
- if ( outputTemplate == null ) throw new ArgumentNullException ( nameof ( outputTemplate ) ) ;
79
73
80
74
var eventCollectorSink = new EventCollectorSink (
81
75
splunkHost ,
@@ -103,7 +97,7 @@ public static LoggerConfiguration EventCollector(
103
97
/// <param name="jsonFormatter">The text formatter used to render log events into a JSON format for consumption by Splunk</param>
104
98
/// <param name="uriPath">Change the default endpoint of the Event Collector e.g. services/collector/event</param>
105
99
/// <param name="restrictedToMinimumLevel">The minimum log event level required in order to write an event to the sink.</param>
106
- /// <param name="outputTemplate">The output template to be used when logging</param>
100
+
107
101
/// <param name="batchIntervalInSeconds">The interval in seconds that the queue should be instpected for batching</param>
108
102
/// <param name="batchSizeLimit">The size of the batch</param>
109
103
/// <param name="messageHandler">The handler used to send HTTP requests</param>
@@ -116,15 +110,13 @@ public static LoggerConfiguration EventCollector(
116
110
ITextFormatter jsonFormatter ,
117
111
string uriPath = "services/collector" ,
118
112
LogEventLevel restrictedToMinimumLevel = LevelAlias . Minimum ,
119
- string outputTemplate = DefaultOutputTemplate ,
120
113
int batchIntervalInSeconds = 2 ,
121
114
int batchSizeLimit = 100 ,
122
115
HttpMessageHandler messageHandler = null ,
123
116
LoggingLevelSwitch levelSwitch = null )
124
117
{
125
118
if ( configuration == null ) throw new ArgumentNullException ( nameof ( configuration ) ) ;
126
119
if ( jsonFormatter == null ) throw new ArgumentNullException ( nameof ( jsonFormatter ) ) ;
127
- if ( outputTemplate == null ) throw new ArgumentNullException ( nameof ( outputTemplate ) ) ;
128
120
129
121
var eventCollectorSink = new EventCollectorSink (
130
122
splunkHost ,
@@ -151,7 +143,6 @@ public static LoggerConfiguration EventCollector(
151
143
/// <param name="sourceType">The source type of the event</param>
152
144
/// <param name="host">The host of the event</param>
153
145
/// <param name="restrictedToMinimumLevel">The minimum log event level required in order to write an event to the sink.</param>
154
- /// <param name="outputTemplate">The output template to be used when logging</param>
155
146
/// <param name="formatProvider">Supplies culture-specific formatting information, or null.</param>
156
147
/// <param name="renderTemplate">If ture, the message template will be rendered</param>
157
148
/// <param name="batchIntervalInSeconds">The interval in seconds that the queue should be instpected for batching</param>
@@ -171,7 +162,6 @@ public static LoggerConfiguration EventCollector(
171
162
string host = DefaultHost ,
172
163
string index = DefaultIndex ,
173
164
LogEventLevel restrictedToMinimumLevel = LevelAlias . Minimum ,
174
- string outputTemplate = DefaultOutputTemplate ,
175
165
IFormatProvider formatProvider = null ,
176
166
bool renderTemplate = true ,
177
167
int batchIntervalInSeconds = 2 ,
@@ -180,7 +170,6 @@ public static LoggerConfiguration EventCollector(
180
170
LoggingLevelSwitch levelSwitch = null )
181
171
{
182
172
if ( configuration == null ) throw new ArgumentNullException ( nameof ( configuration ) ) ;
183
- if ( outputTemplate == null ) throw new ArgumentNullException ( nameof ( outputTemplate ) ) ;
184
173
185
174
var eventCollectorSink = new EventCollectorSink (
186
175
splunkHost ,
0 commit comments