private String createMessage ( ServiceReference sr , String message ) { StringBuilder output = new StringBuilder ( ) ; if ( sr != null ) { output . append ( ' ' ) . append ( sr . toString ( ) ) . append ( ' ' ) ; } else { output . append ( UNKNOWN ) ; } output . append ( message ) ; return output . toString ( ) ; }
Formats the log message to indicate the service sending it if known .