spring-geode-starter-logging/src/main/java/org/springframework/geode/logging/slf4j/logback/support/LogbackSupport.java
/**
	 * Removes the {@link Appender} with the specified {@link String name} from the given {@link Logger}.
	 *
	 * @param logger {@link Logger} from which to remove the {@link Appender}.
	 * @param appenderName {@link String name} of the {@link Appender} to remove from the {@link Logger}.
	 * @return a boolean value indicating whether the targeted {@link Appender} was removed from
	 * the given {@link Logger}.
	 * @see ch.qos.logback.classic.Logger
	 * @see ch.qos.logback.core.Appender
	 */
Removes the  Appender with the specified  String name from the given  Logger.
@param logger  Logger from which to remove the  Appender.
@param appenderName  String name of the  Appender to remove from the  Logger.
@return a boolean value indicating whether the targeted  Appender was removed from
the given  Logger.
Removes the Appender with the specified String name from the given Logger . @param logger Logger from which to remove the Appender . @param appenderName String name of the Appender to remove from the Logger . @return a boolean value indicating whether the targeted Appender was removed from the given Logger .
@SuppressWarnings("all")
	public static boolean removeAppender(ch.qos.logback.classic.Logger logger, String appenderName) {
		return Optional.ofNullable(logger)
			.map(it -> it.getAppender(appenderName))
			.filter(appender -> appender.getName().equals(appenderName))
			.map(appender -> { appender.stop(); return appender; })
			.map(appender -> logger.detachAppender(appender))
			.orElse(false);
	}
@ SuppressWarnings ( "all" ) public static boolean removeAppender ( ch . qos . logback . classic . Logger logger , String appenderName ) { return Optional . ofNullable ( logger ) . map ( it -> it . getAppender ( appenderName ) ) . filter ( appender -> appender . getName ( ) . equals ( appenderName ) ) . map ( appender -> { appender . stop ( ) ; return appender ; } ) . map ( appender -> logger . detachAppender ( appender ) ) . orElse ( false ) ; }
Removes the {@link Appender} with the specified {@link String name} from the given {@link Logger}.
Removes the { @link Appender } with the specified { @link String name } from the given { @link Logger } .