public void echo(SystemLogHolder holder, LogRecord logRecord) {
        TraceWriter detailLog = traceLog;
        // Tee to messages.log (always)

        RoutedMessage routedMessage = null;
        if (externalMessageRouter.get() != null) {
            String message = formatter.messageLogFormat(logRecord, logRecord.getMessage());
            routedMessage = new RoutedMessageImpl(logRecord.getMessage(), logRecord.getMessage(), message, logRecord);
        } else {
            routedMessage = new RoutedMessageImpl(logRecord.getMessage(), logRecord.getMessage(), null, logRecord);
        }
        invokeMessageRouters(routedMessage);
        if (logSource != null) {
            publishToLogSource(routedMessage);
        }
        //send events to handlers
        if (TraceComponent.isAnyTracingEnabled()) {
            publishTraceLogRecord(detailLog, logRecord, NULL_ID, NULL_FORMATTED_MSG, NULL_FORMATTED_MSG);
        }
    }
public void echo ( SystemLogHolder holder , LogRecord logRecord ) { TraceWriter detailLog = traceLog ; RoutedMessage routedMessage = null ; if ( externalMessageRouter . get ( ) != null ) { String message = formatter . messageLogFormat ( logRecord , logRecord . getMessage ( ) ) ; routedMessage = new RoutedMessageImpl ( logRecord . getMessage ( ) , logRecord . getMessage ( ) , message , logRecord ) ; } else { routedMessage = new RoutedMessageImpl ( logRecord . getMessage ( ) , logRecord . getMessage ( ) , null , logRecord ) ; } invokeMessageRouters ( routedMessage ) ; if ( logSource != null ) { publishToLogSource ( routedMessage ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) ) { publishTraceLogRecord ( detailLog , logRecord , NULL_ID , NULL_FORMATTED_MSG , NULL_FORMATTED_MSG ) ; } }
Echo data printed (from multiple sources) to System.out and
System.err to target streams:
<ul>
<li>"the console" -- system streams</li>
<li>messages.log</li>
<li>trace.log if trace is enabled</li>
</ul>

@see #writeStreamOutput(SystemLogHolder, String, boolean)
@see #publishLogRecord(LogRecord)