fitgoodies-logging-log4j/src/main/java/de/cologneintelligence/fitgoodies/log4j/LogHelper.java
public void addCaptureToLogger(final AppenderAttachable logger,
	                               final String appenderName) {
		Appender currentAppender = logger.getAppender(appenderName);
		Appender captureAppender = CaptureAppender.newAppenderFrom(currentAppender);
		logger.addAppender(captureAppender);
	}
public void addCaptureToLogger(final AppenderAttachable logger,
	                               final String appenderName) {
		Appender currentAppender = logger.getAppender(appenderName);
		Appender captureAppender = CaptureAppender.newAppenderFrom(currentAppender);
		logger.addAppender(captureAppender);
	}
public void addCaptureToLogger ( final AppenderAttachable logger , final String appenderName ) { Appender currentAppender = logger . getAppender ( appenderName ) ; Appender captureAppender = CaptureAppender . newAppenderFrom ( currentAppender ) ; logger . addAppender ( captureAppender ) ; }
Adds a new CaptureAppender to an existing logger.

@param logger       logger to use
@param appenderName name of an existing appender which will be captured
Adds a new CaptureAppender to an existing logger .