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 .