@@ -79,12 +79,12 @@ public static LoggerConfiguration MSSqlServer(
79
79
connectionString : connectionString ,
80
80
sinkOptions : sinkOptions ,
81
81
appConfiguration : appConfiguration ,
82
+ sinkOptionsSection : null ,
82
83
restrictedToMinimumLevel : restrictedToMinimumLevel ,
83
84
formatProvider : formatProvider ,
84
85
columnOptions : columnOptions ,
85
86
columnOptionsSection : columnOptionsSection ,
86
- logEventFormatter : logEventFormatter ,
87
- sinkOptionsSection : null ) ;
87
+ logEventFormatter : logEventFormatter ) ;
88
88
}
89
89
90
90
/// <summary>
@@ -97,25 +97,25 @@ public static LoggerConfiguration MSSqlServer(
97
97
/// <param name="connectionString">The connection string to the database where to store the events.</param>
98
98
/// <param name="sinkOptions">Supplies additional settings for the sink</param>
99
99
/// <param name="appConfiguration">Additional application-level configuration. Required if connectionString is a name.</param>
100
+ /// <param name="sinkOptionsSection">A config section defining additional settings for the sink</param>
100
101
/// <param name="restrictedToMinimumLevel">The minimum log event level required in order to write an event to the sink.</param>
101
102
/// <param name="formatProvider">Supplies culture-specific formatting information, or null.</param>
102
103
/// <param name="columnOptions">An externally-modified group of column settings</param>
103
104
/// <param name="columnOptionsSection">A config section defining various column settings</param>
104
105
/// <param name="logEventFormatter">Supplies custom formatter for the LogEvent column, or null</param>
105
- /// <param name="sinkOptionsSection">A config section defining additional settings for the sink</param>
106
106
/// <returns>Logger configuration, allowing configuration to continue.</returns>
107
107
/// <exception cref="ArgumentNullException">A required parameter is null.</exception>
108
108
public static LoggerConfiguration MSSqlServer (
109
109
this LoggerSinkConfiguration loggerConfiguration ,
110
110
string connectionString ,
111
111
SinkOptions sinkOptions = null ,
112
112
IConfiguration appConfiguration = null ,
113
+ IConfigurationSection sinkOptionsSection = null ,
113
114
LogEventLevel restrictedToMinimumLevel = LevelAlias . Minimum ,
114
115
IFormatProvider formatProvider = null ,
115
116
ColumnOptions columnOptions = null ,
116
117
IConfigurationSection columnOptionsSection = null ,
117
- ITextFormatter logEventFormatter = null ,
118
- IConfigurationSection sinkOptionsSection = null )
118
+ ITextFormatter logEventFormatter = null )
119
119
{
120
120
if ( loggerConfiguration == null )
121
121
throw new ArgumentNullException ( nameof ( loggerConfiguration ) ) ;
@@ -171,12 +171,12 @@ public static LoggerConfiguration MSSqlServer(
171
171
connectionString : connectionString ,
172
172
sinkOptions : sinkOptions ,
173
173
appConfiguration : appConfiguration ,
174
+ sinkOptionsSection : null ,
174
175
restrictedToMinimumLevel : restrictedToMinimumLevel ,
175
176
formatProvider : formatProvider ,
176
177
columnOptions : columnOptions ,
177
178
columnOptionsSection : columnOptionsSection ,
178
- logEventFormatter : logEventFormatter ,
179
- sinkOptionsSection : null ) ;
179
+ logEventFormatter : logEventFormatter ) ;
180
180
}
181
181
182
182
/// <summary>
@@ -186,25 +186,25 @@ public static LoggerConfiguration MSSqlServer(
186
186
/// <param name="connectionString">The connection string to the database where to store the events.</param>
187
187
/// <param name="sinkOptions">Supplies additional settings for the sink</param>
188
188
/// <param name="appConfiguration">Additional application-level configuration. Required if connectionString is a name.</param>
189
+ /// <param name="sinkOptionsSection">A config section defining additional settings for the sink</param>
189
190
/// <param name="restrictedToMinimumLevel">The minimum log event level required in order to write an event to the sink.</param>
190
191
/// <param name="formatProvider">Supplies culture-specific formatting information, or null.</param>
191
192
/// <param name="columnOptions">An externally-modified group of column settings</param>
192
193
/// <param name="columnOptionsSection">A config section defining various column settings</param>
193
194
/// <param name="logEventFormatter">Supplies custom formatter for the LogEvent column, or null</param>
194
- /// <param name="sinkOptionsSection">A config section defining additional settings for the sink</param>
195
195
/// <returns>Logger configuration, allowing configuration to continue.</returns>
196
196
/// <exception cref="ArgumentNullException">A required parameter is null.</exception>
197
197
public static LoggerConfiguration MSSqlServer (
198
198
this LoggerAuditSinkConfiguration loggerAuditSinkConfiguration ,
199
199
string connectionString ,
200
200
SinkOptions sinkOptions = null ,
201
201
IConfiguration appConfiguration = null ,
202
+ IConfigurationSection sinkOptionsSection = null ,
202
203
LogEventLevel restrictedToMinimumLevel = LevelAlias . Minimum ,
203
204
IFormatProvider formatProvider = null ,
204
205
ColumnOptions columnOptions = null ,
205
206
IConfigurationSection columnOptionsSection = null ,
206
- ITextFormatter logEventFormatter = null ,
207
- IConfigurationSection sinkOptionsSection = null )
207
+ ITextFormatter logEventFormatter = null )
208
208
{
209
209
if ( loggerAuditSinkConfiguration == null )
210
210
throw new ArgumentNullException ( nameof ( loggerAuditSinkConfiguration ) ) ;
0 commit comments