@@ -381,7 +381,7 @@ private void bindLoggerGroups(ConfigurableEnvironment environment) {
381381 * @since 2.2.0
382382 */
383383 protected void initializeSpringBootLogging (LoggingSystem system , LogLevel springBootLogging ) {
384- BiConsumer <String , LogLevel > configurer = getLogLevelConfigurer (system );
384+ BiConsumer <String , @ Nullable LogLevel > configurer = getLogLevelConfigurer (system );
385385 SPRING_BOOT_LOGGING_LOGGERS .getOrDefault (springBootLogging , Collections .emptyList ())
386386 .forEach ((name ) -> configureLogLevel (name , springBootLogging , configurer ));
387387 }
@@ -393,13 +393,13 @@ protected void initializeSpringBootLogging(LoggingSystem system, LogLevel spring
393393 * @since 2.2.0
394394 */
395395 protected void setLogLevels (LoggingSystem system , ConfigurableEnvironment environment ) {
396- BiConsumer <String , LogLevel > customizer = getLogLevelConfigurer (system );
396+ BiConsumer <String , @ Nullable LogLevel > customizer = getLogLevelConfigurer (system );
397397 Binder binder = Binder .get (environment );
398398 Map <String , LogLevel > levels = binder .bind (LOGGING_LEVEL , STRING_LOGLEVEL_MAP ).orElseGet (Collections ::emptyMap );
399399 levels .forEach ((name , level ) -> configureLogLevel (name , level , customizer ));
400400 }
401401
402- private void configureLogLevel (String name , LogLevel level , BiConsumer <String , LogLevel > configurer ) {
402+ private void configureLogLevel (String name , LogLevel level , BiConsumer <String , @ Nullable LogLevel > configurer ) {
403403 if (this .loggerGroups != null ) {
404404 LoggerGroup group = this .loggerGroups .get (name );
405405 if (group != null && group .hasMembers ()) {
@@ -410,7 +410,7 @@ private void configureLogLevel(String name, LogLevel level, BiConsumer<String, L
410410 configurer .accept (name , level );
411411 }
412412
413- private BiConsumer <String , LogLevel > getLogLevelConfigurer (LoggingSystem system ) {
413+ private BiConsumer <String , @ Nullable LogLevel > getLogLevelConfigurer (LoggingSystem system ) {
414414 return (name , level ) -> {
415415 try {
416416 name = name .equalsIgnoreCase (LoggingSystem .ROOT_LOGGER_NAME ) ? null : name ;
0 commit comments