final void dispatchToAppender ( final LoggingEvent customLoggingEvent ) { // wrap the LoggingEvent in a FileRollEvent to prevent recursion bug final FoundationFileRollingAppender appender = this . getSource ( ) ; if ( appender != null ) { appender . append ( new FileRollEvent ( customLoggingEvent , this ) ) ; } }
Convenience method dispatches the specified event to the source appender which will result in the custom event data being appended to the new file .