question: private void logEntry ( LogEntry entry ) { StringBuilder logMessage = new StringBuilder ( "Bundle: " ) ; logMessage . append ( entry . getBundle ( ) ) ; if ( entry . getServiceReference ( ) != null ) { logMessage . append ( " - " ) ; logMessage . append ( entry . getServiceReference ( ) ) ; } logMessage . append ( " " ) ; logMessage . append ( entry . getMessage ( ) ) ; Throwable ex = entry . getException ( ) ; switch ( entry . getLevel ( ) ) { case LogService . LOG_ERROR : { defaultEntryLogger . error ( logMessage . toString ( ) , ex ) ; break ; } case LogService . LOG_WARNING : { defaultEntryLogger . warn ( logMessage . toString ( ) , ex ) ; break ; } case LogService . LOG_INFO : { defaultEntryLogger . info ( logMessage . toString ( ) , ex ) ; break ; } case LogService . LOG_DEBUG : { defaultEntryLogger . debug ( logMessage . toString ( ) , ex ) ; break ; } default : { defaultEntryLogger . warn ( "Unknown OSGi log level [" + entry . getLevel ( ) + "] for" + logMessage . toString ( ) , ex ) ; } } }
target:  Log the OSGi entry using the slf4j logger