Package org.apache.log4j.net

Examples of org.apache.log4j.net.SocketNode


            //
            // jason: may want to expose socket node as an MBean for management
            //
           
            log.debug("Starting new socket node");
            SocketNode node = new SocketNode(socket, repo);
            /* Create a thread with and MDC.host value set to the client
            hostname to allow for distiguished output
            */
            String clientHost = addr.getHostName();
            SocketThread thread = new SocketThread(node, clientHost);
View Full Code Here


/*     */
/* 259 */         LoggerRepository repo = Log4jSocketServer.this.getLoggerRepository(addr);
/* 260 */         this.log.debug("Using repository: " + repo);
/*     */
/* 266 */         this.log.debug("Starting new socket node");
/* 267 */         SocketNode node = new SocketNode(socket, repo);
/*     */
/* 271 */         String clientHost = addr.getHostName();
/* 272 */         Log4jSocketServer.SocketThread thread = new Log4jSocketServer.SocketThread(node, clientHost);
/* 273 */         thread.start();
/* 274 */         this.log.debug("Socket node started");
View Full Code Here

      try {
        while (true) {
          log.debug("Waiting for log message senders");
          Socket socket = server.accept();
          log.debug("Got a new connection");
          Thread t = new Daemon(new SocketNode(socket, LogManager.getLoggerRepository()));
          t.start();
        }
      } catch (IOException io) {
        log.error(io, io);
      }
View Full Code Here

TOP

Related Classes of org.apache.log4j.net.SocketNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.