protected void logMessage ( String logMessage , String message , boolean incoming ) { if ( messageListener != null ) { log . debug ( logMessage ) ; if ( incoming ) { messageListener . onInboundMessage ( new RawMessage ( message ) , null ) ; } else { messageListener . onOutboundMessage ( new RawMessage ( message ) , null ) ; } } else { if ( log . isDebugEnabled ( ) ) { log . debug ( logMessage + ":" + System . getProperty ( "line.separator" ) + message ) ; } } }
Performs the final logger call with dynamic message .