public void append ( final T event ) { // make sure we can append the log message if ( backgroundService == null ) { return ; } if ( ! backgroundService . isRunning ( ) ) { return ; } // skip internal logging if ( ! allowComDotStackify ) { String className = eventAdapter . getClassName ( event ) ; if ( className != null ) { if ( className . startsWith ( COM_DOT_STACKIFY ) ) { return ; } } } // build the log message and queue it to be sent to Stackify Throwable exception = eventAdapter . getThrowable ( event ) ; StackifyError error = null ; if ( ( exception != null ) || ( eventAdapter . isErrorLevel ( event ) ) ) { StackifyError e = eventAdapter . getStackifyError ( event , exception ) ; if ( errorGovernor . errorShouldBeSent ( e ) ) { error = e ; } } LogMsg logMsg = eventAdapter . getLogMsg ( event , error ) ; collector . addLogMsg ( logMsg ) ; }
Adds the log message to the collector