@ Override public void echo ( SystemLogHolder holder , LogRecord logRecord ) { TraceWriter detailLog = traceLog ; // Tee to messages.log (always) String message = formatter . messageLogFormat ( logRecord , logRecord . getMessage ( ) ) ; messagesLog . writeRecord ( message ) ; invokeMessageRouters ( new RoutedMessageImpl ( logRecord . getMessage ( ) , logRecord . getMessage ( ) , message , logRecord ) ) ; if ( detailLog == systemOut ) { // preserve System.out vs. System.err publishTraceLogRecord ( holder , logRecord , NULL_ID , NULL_FORMATTED_MSG , NULL_FORMATTED_MSG ) ; } else { if ( copySystemStreams ) { // Tee to console.log if we are copying System.out and System.err to system streams. writeFilteredStreamOutput ( holder , logRecord ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) ) { publishTraceLogRecord ( detailLog , logRecord , NULL_ID , NULL_FORMATTED_MSG , NULL_FORMATTED_MSG ) ; } } }
Overwritten for old BaseTraceService behaviour for echo