@@ -253,17 +253,17 @@ public static LoggerConfiguration File(
253253 string path ,
254254 LogEventLevel restrictedToMinimumLevel = LevelAlias . Minimum ,
255255 string outputTemplate = DefaultOutputTemplate ,
256- IFormatProvider formatProvider = null ,
256+ IFormatProvider ? formatProvider = null ,
257257 long ? fileSizeLimitBytes = DefaultFileSizeLimitBytes ,
258- LoggingLevelSwitch levelSwitch = null ,
258+ LoggingLevelSwitch ? levelSwitch = null ,
259259 bool buffered = false ,
260260 bool shared = false ,
261261 TimeSpan ? flushToDiskInterval = null ,
262262 RollingInterval rollingInterval = RollingInterval . Infinite ,
263263 bool rollOnFileSizeLimit = false ,
264264 int ? retainedFileCountLimit = DefaultRetainedFileCountLimit ,
265- Encoding encoding = null ,
266- FileLifecycleHooks hooks = null ,
265+ Encoding ? encoding = null ,
266+ FileLifecycleHooks ? hooks = null ,
267267 TimeSpan ? retainedFileTimeLimit = null )
268268 {
269269 if ( sinkConfiguration == null ) throw new ArgumentNullException ( nameof ( sinkConfiguration ) ) ;
@@ -324,15 +324,15 @@ public static LoggerConfiguration File(
324324 string path ,
325325 LogEventLevel restrictedToMinimumLevel = LevelAlias . Minimum ,
326326 long ? fileSizeLimitBytes = DefaultFileSizeLimitBytes ,
327- LoggingLevelSwitch levelSwitch = null ,
327+ LoggingLevelSwitch ? levelSwitch = null ,
328328 bool buffered = false ,
329329 bool shared = false ,
330330 TimeSpan ? flushToDiskInterval = null ,
331331 RollingInterval rollingInterval = RollingInterval . Infinite ,
332332 bool rollOnFileSizeLimit = false ,
333333 int ? retainedFileCountLimit = DefaultRetainedFileCountLimit ,
334- Encoding encoding = null ,
335- FileLifecycleHooks hooks = null ,
334+ Encoding ? encoding = null ,
335+ FileLifecycleHooks ? hooks = null ,
336336 TimeSpan ? retainedFileTimeLimit = null )
337337 {
338338 if ( sinkConfiguration == null ) throw new ArgumentNullException ( nameof ( sinkConfiguration ) ) ;
@@ -443,10 +443,10 @@ public static LoggerConfiguration File(
443443 string path ,
444444 LogEventLevel restrictedToMinimumLevel = LevelAlias . Minimum ,
445445 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 )
450450 {
451451 if ( sinkConfiguration == null ) throw new ArgumentNullException ( nameof ( sinkConfiguration ) ) ;
452452 if ( path == null ) throw new ArgumentNullException ( nameof ( path ) ) ;
@@ -487,9 +487,9 @@ public static LoggerConfiguration File(
487487 ITextFormatter formatter ,
488488 string path ,
489489 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 )
493493 {
494494 if ( sinkConfiguration == null ) throw new ArgumentNullException ( nameof ( sinkConfiguration ) ) ;
495495 if ( formatter == null ) throw new ArgumentNullException ( nameof ( formatter ) ) ;
@@ -500,21 +500,21 @@ public static LoggerConfiguration File(
500500 }
501501
502502 static LoggerConfiguration ConfigureFile (
503- this Func < ILogEventSink , LogEventLevel , LoggingLevelSwitch , LoggerConfiguration > addSink ,
503+ this Func < ILogEventSink , LogEventLevel , LoggingLevelSwitch ? , LoggerConfiguration > addSink ,
504504 ITextFormatter formatter ,
505505 string path ,
506506 LogEventLevel restrictedToMinimumLevel ,
507507 long ? fileSizeLimitBytes ,
508- LoggingLevelSwitch levelSwitch ,
508+ LoggingLevelSwitch ? levelSwitch ,
509509 bool buffered ,
510510 bool propagateExceptions ,
511511 bool shared ,
512512 TimeSpan ? flushToDiskInterval ,
513- Encoding encoding ,
513+ Encoding ? encoding ,
514514 RollingInterval rollingInterval ,
515515 bool rollOnFileSizeLimit ,
516516 int ? retainedFileCountLimit ,
517- FileLifecycleHooks hooks ,
517+ FileLifecycleHooks ? hooks ,
518518 TimeSpan ? retainedFileTimeLimit )
519519 {
520520 if ( addSink == null ) throw new ArgumentNullException ( nameof ( addSink ) ) ;
0 commit comments