spring-geode-starter-logging/src/main/java/org/springframework/geode/logging/slf4j/logback/support/LogbackSupport.java
/**
	 * Adds the given {@link Appender} to the given {@link Logger}.
	 *
	 * @param logger {@link Logger} to add the {@link Appender} to.
	 * @param appender {@link Appender} to add to the {@link Logger}.
	 * @return a boolean value indicating whether the {@link Appender} was successfully added to the {@link Logger}.
	 * @see ch.qos.logback.classic.Logger
	 * @see ch.qos.logback.core.Appender
	 */
Adds the given  Appender to the given  Logger.
@param logger  Logger to add the  Appender to.
@param appender  Appender to add to the  Logger.
@return a boolean value indicating whether the  Appender was successfully added to the  Logger.
Adds the given Appender to the given Logger . @param logger Logger to add the Appender to . @param appender Appender to add to the Logger . @return a boolean value indicating whether the Appender was successfully added to the Logger .
public static boolean addAppender(ch.qos.logback.classic.Logger logger, Appender<ILoggingEvent> appender) {
		return Optional.ofNullable(logger)
			.filter(it -> Objects.nonNull(appender))
			.map(it -> {
				it.addAppender(appender);
				return logger.getAppender(appender.getName());
			})
			.isPresent();
	}
public static boolean addAppender ( ch . qos . logback . classic . Logger logger , Appender < ILoggingEvent > appender ) { return Optional . ofNullable ( logger ) . filter ( it -> Objects . nonNull ( appender ) ) . map ( it -> { it . addAppender ( appender ) ; return logger . getAppender ( appender . getName ( ) ) ; } ) . isPresent ( ) ; }
Adds the given {@link Appender} to the given {@link Logger}.
Adds the given { @link Appender } to the given { @link Logger } .