@@ -329,7 +329,7 @@ internal static IList<MethodInfo> FindSinkConfigurationMethods(IReadOnlyCollecti
329329 {
330330 var found = FindConfigurationMethods ( configurationAssemblies , typeof ( LoggerSinkConfiguration ) ) ;
331331 if ( configurationAssemblies . Contains ( typeof ( LoggerSinkConfiguration ) . GetTypeInfo ( ) . Assembly ) )
332- found . Add ( GetSurrogateConfigurationMethod < LoggerSinkConfiguration , Action < LoggerConfiguration > , LoggingLevelSwitch > ( ( c , a , s ) => Logger ( c , a , s ) ) ) ;
332+ found . Add ( GetSurrogateConfigurationMethod < LoggerSinkConfiguration , Action < LoggerConfiguration > , LoggingLevelSwitch > ( ( c , a , s ) => Logger ( c , a , LevelAlias . Minimum , s ) ) ) ;
333333
334334 return found ;
335335 }
@@ -380,8 +380,12 @@ internal static LoggerConfiguration FromLogContext(LoggerEnrichmentConfiguration
380380 => loggerEnrichmentConfiguration . FromLogContext ( ) ;
381381
382382 // Unlike the other configuration methods, Logger is an instance method rather than an extension.
383- internal static LoggerConfiguration Logger ( LoggerSinkConfiguration loggerSinkConfiguration , Action < LoggerConfiguration > configureLogger , LoggingLevelSwitch restrictedToMinimumLevel = null )
384- => loggerSinkConfiguration . Logger ( configureLogger , levelSwitch : restrictedToMinimumLevel ) ;
383+ internal static LoggerConfiguration Logger (
384+ LoggerSinkConfiguration loggerSinkConfiguration ,
385+ Action < LoggerConfiguration > configureLogger ,
386+ LogEventLevel restrictedToMinimumLevel = LevelAlias . Minimum ,
387+ LoggingLevelSwitch levelSwitch = null )
388+ => loggerSinkConfiguration . Logger ( configureLogger , restrictedToMinimumLevel , levelSwitch ) ;
385389
386390 internal static MethodInfo GetSurrogateConfigurationMethod < TConfiguration , TArg1 , TArg2 > ( Expression < Action < TConfiguration , TArg1 , TArg2 > > method )
387391 => ( method . Body as MethodCallExpression ) ? . Method ;
0 commit comments