Logging.currentLogger().debug("LogEventRouter: Logging event to Socket ************");
System.out.println("LogEventRouter: Logging event to Socket ************");
    public void routeEvent(LogEventWrapper event) {            Throwable thr = event.getThrowable();        if (logToCougaar) {            LoggingService log = event.getCougaarLogger();            if (log != null) { //use specified logger                log.log(event.getLogLevel(), event.toString(), thr);            } else { //look up any cougaar logger                cougaarLogger = Logging.currentLogger();                cougaarLogger.log(event.getLogLevel(), event.toString(), thr);            }            if (DEBUG) {                 Logging.currentLogger().debug("LogEventRouter: Logging event to Cougaar w/throwable***********\n"+event.toString() + event.toString()+"\nLogLevel="+event.getLogLevel());                     }                    } else { //send to Log4J                        if (DEBUG) {                Logging.currentLogger().debug("LogEventRouter: Logging event to Socket ************");                     }            String FQCN = (org.apache.log4j.Logger.class).getName();            LogEvent evt = new LogEvent(FQCN, log4JLogger, event.getLog4JLevel(),                                         (Object)event.getEventData(), (Throwable)null);            log4JLogger.callAppenders(evt);        }                    }