@@ -253,17 +253,17 @@ public static LoggerConfiguration File(
253
253
string path ,
254
254
LogEventLevel restrictedToMinimumLevel = LevelAlias . Minimum ,
255
255
string outputTemplate = DefaultOutputTemplate ,
256
- IFormatProvider formatProvider = null ,
256
+ IFormatProvider ? formatProvider = null ,
257
257
long ? fileSizeLimitBytes = DefaultFileSizeLimitBytes ,
258
- LoggingLevelSwitch levelSwitch = null ,
258
+ LoggingLevelSwitch ? levelSwitch = null ,
259
259
bool buffered = false ,
260
260
bool shared = false ,
261
261
TimeSpan ? flushToDiskInterval = null ,
262
262
RollingInterval rollingInterval = RollingInterval . Infinite ,
263
263
bool rollOnFileSizeLimit = false ,
264
264
int ? retainedFileCountLimit = DefaultRetainedFileCountLimit ,
265
- Encoding encoding = null ,
266
- FileLifecycleHooks hooks = null ,
265
+ Encoding ? encoding = null ,
266
+ FileLifecycleHooks ? hooks = null ,
267
267
TimeSpan ? retainedFileTimeLimit = null )
268
268
{
269
269
if ( sinkConfiguration == null ) throw new ArgumentNullException ( nameof ( sinkConfiguration ) ) ;
@@ -324,15 +324,15 @@ public static LoggerConfiguration File(
324
324
string path ,
325
325
LogEventLevel restrictedToMinimumLevel = LevelAlias . Minimum ,
326
326
long ? fileSizeLimitBytes = DefaultFileSizeLimitBytes ,
327
- LoggingLevelSwitch levelSwitch = null ,
327
+ LoggingLevelSwitch ? levelSwitch = null ,
328
328
bool buffered = false ,
329
329
bool shared = false ,
330
330
TimeSpan ? flushToDiskInterval = null ,
331
331
RollingInterval rollingInterval = RollingInterval . Infinite ,
332
332
bool rollOnFileSizeLimit = false ,
333
333
int ? retainedFileCountLimit = DefaultRetainedFileCountLimit ,
334
- Encoding encoding = null ,
335
- FileLifecycleHooks hooks = null ,
334
+ Encoding ? encoding = null ,
335
+ FileLifecycleHooks ? hooks = null ,
336
336
TimeSpan ? retainedFileTimeLimit = null )
337
337
{
338
338
if ( sinkConfiguration == null ) throw new ArgumentNullException ( nameof ( sinkConfiguration ) ) ;
@@ -443,10 +443,10 @@ public static LoggerConfiguration File(
443
443
string path ,
444
444
LogEventLevel restrictedToMinimumLevel = LevelAlias . Minimum ,
445
445
string outputTemplate = DefaultOutputTemplate ,
446
- IFormatProvider formatProvider = null ,
447
- LoggingLevelSwitch levelSwitch = null ,
448
- Encoding encoding = null ,
449
- FileLifecycleHooks hooks = null )
446
+ IFormatProvider ? formatProvider = null ,
447
+ LoggingLevelSwitch ? levelSwitch = null ,
448
+ Encoding ? encoding = null ,
449
+ FileLifecycleHooks ? hooks = null )
450
450
{
451
451
if ( sinkConfiguration == null ) throw new ArgumentNullException ( nameof ( sinkConfiguration ) ) ;
452
452
if ( path == null ) throw new ArgumentNullException ( nameof ( path ) ) ;
@@ -487,9 +487,9 @@ public static LoggerConfiguration File(
487
487
ITextFormatter formatter ,
488
488
string path ,
489
489
LogEventLevel restrictedToMinimumLevel = LevelAlias . Minimum ,
490
- LoggingLevelSwitch levelSwitch = null ,
491
- Encoding encoding = null ,
492
- FileLifecycleHooks hooks = null )
490
+ LoggingLevelSwitch ? levelSwitch = null ,
491
+ Encoding ? encoding = null ,
492
+ FileLifecycleHooks ? hooks = null )
493
493
{
494
494
if ( sinkConfiguration == null ) throw new ArgumentNullException ( nameof ( sinkConfiguration ) ) ;
495
495
if ( formatter == null ) throw new ArgumentNullException ( nameof ( formatter ) ) ;
@@ -500,21 +500,21 @@ public static LoggerConfiguration File(
500
500
}
501
501
502
502
static LoggerConfiguration ConfigureFile (
503
- this Func < ILogEventSink , LogEventLevel , LoggingLevelSwitch , LoggerConfiguration > addSink ,
503
+ this Func < ILogEventSink , LogEventLevel , LoggingLevelSwitch ? , LoggerConfiguration > addSink ,
504
504
ITextFormatter formatter ,
505
505
string path ,
506
506
LogEventLevel restrictedToMinimumLevel ,
507
507
long ? fileSizeLimitBytes ,
508
- LoggingLevelSwitch levelSwitch ,
508
+ LoggingLevelSwitch ? levelSwitch ,
509
509
bool buffered ,
510
510
bool propagateExceptions ,
511
511
bool shared ,
512
512
TimeSpan ? flushToDiskInterval ,
513
- Encoding encoding ,
513
+ Encoding ? encoding ,
514
514
RollingInterval rollingInterval ,
515
515
bool rollOnFileSizeLimit ,
516
516
int ? retainedFileCountLimit ,
517
- FileLifecycleHooks hooks ,
517
+ FileLifecycleHooks ? hooks ,
518
518
TimeSpan ? retainedFileTimeLimit )
519
519
{
520
520
if ( addSink == null ) throw new ArgumentNullException ( nameof ( addSink ) ) ;
0 commit comments