protected boolean invokeTraceRouters(RoutedMessage routedTrace) {

        boolean retMe = true;
        LogRecord logRecord = routedTrace.getLogRecord();
        /*
         * Avoid any feedback traces that are emitted after this point.
         * The first time the counter increments is the first pass-through.
         * The second time the counter increments is the second pass-through due
         * to trace emitted. We do not want any more pass-throughs.
         */
        try {
            if (!(counterForTraceRouter.incrementCount() > 2)) {
                if (logRecord != null) {
                    Level level = logRecord.getLevel();
                    int levelValue = level.intValue();
                    if (levelValue < Level.INFO.intValue()) {
                        String levelName = level.getName();
                        if (!(levelName.equals("SystemOut") || levelName.equals("SystemErr"))) { //SystemOut/Err=700
                            WsTraceRouter internalTrRouter = internalTraceRouter.get();
                            if (internalTrRouter != null) {
                                retMe &= internalTrRouter.route(routedTrace);
                            } else if (earlierTraces != null) {
                                synchronized (this) {
                                    if (earlierTraces != null) {
                                        earlierTraces.add(routedTrace);
                                    }
                                }
                            }
                        }
                    }
                }
            }
        } finally {
            counterForTraceRouter.decrementCount();
        }
        return retMe;
    }
protected boolean invokeTraceRouters ( RoutedMessage routedTrace ) { boolean retMe = true ; LogRecord logRecord = routedTrace . getLogRecord ( ) ; try { if ( ! ( counterForTraceRouter . incrementCount ( ) > 2 ) ) { if ( logRecord != null ) { Level level = logRecord . getLevel ( ) ; int levelValue = level . intValue ( ) ; if ( levelValue < Level . INFO . intValue ( ) ) { String levelName = level . getName ( ) ; if ( ! ( levelName . equals ( "SystemOut" ) || levelName . equals ( "SystemErr" ) ) ) { WsTraceRouter internalTrRouter = internalTraceRouter . get ( ) ; if ( internalTrRouter != null ) { retMe &= internalTrRouter . route ( routedTrace ) ; } else if ( earlierTraces != null ) { synchronized ( this ) { if ( earlierTraces != null ) { earlierTraces . add ( routedTrace ) ; } } } } } } } } finally { counterForTraceRouter . decrementCount ( ) ; } return retMe ; }
Route only trace log records.Messages including Systemout,err will not be routed to trace source to avoid duplicate entries