Logging.currentLogger().debug("**** Initing Msg Traffic Logging Socket ***");
System.out.println("**** Initing Msg Traffic Logging Socket ***");
    private LogEventRouter() {        if (DEBUG) {            Logging.currentLogger().debug("LogEventRouter: Initialization****************");                 }                try {            //This is a mandatory property to log to a Log4J socket            String s = "org.cougaar.core.mts.logging.Log4JHost";            loggingHost = (String)System.getProperty(s,null);                        if (loggingHost != null) { //look for the rest of the properties                            //This is a mandatory property to log to a Log4J socket                s = "org.cougaar.core.mts.logging.Log4JPort";                loggingPort = Integer.valueOf(System.getProperty(s,"0")).intValue();                s = "org.cougaar.core.mts.logging.Log4JLogger";                loggerName = (String)System.getProperty(s,"DEFAULT_LOGGER");                s = "org.cougaar.core.mts.logging.Log4JLevel";                String lev = (String)System.getProperty(s,"DEBUG");                log4JLevel = mapStringToLog4JLevel(lev);                                if ( loggingPort > 0 ) { // then we're going to route to a socket.                    Logging.currentLogger().debug("**** Initing Msg Traffic Logging Socket ***");                    log4JLogger = org.apache.log4j.Logger.getLogger(loggerName);                    log4JLogger.addAppender(new SocketAppender(loggingHost, loggingPort));                    log4JLogger.setLevel(log4JLevel);                    logToCougaar = false;                                        //Logging.currentLogger().debug("**** StreamMagic = "+ ObjectOutputStream.STREAM_MAGIC);                     //Logging.currentLogger().debug("**** StreamVersion = "+ ObjectOutputStream.STREAM_VERSION);                                     }            }        } catch (Exception e) {            Logging.currentLogger().warn("Could not initialize. Exception was: "+e);        }    }