Package org.apache.log4j.net

Examples of org.apache.log4j.net.SocketReceiver$SocketDetail


      public void receiveEventBatch(String identifier, List events) {
        System.out.println("received " + events.size());
      }
    });
    LogManager.getRootLogger().addAppender(handler);
    SocketReceiver receiver = new SocketReceiver(4445);
    LogManager.getLoggerRepository().getPluginRegistry().addPlugin(receiver);
    receiver.activateOptions();
    Thread.sleep(60000);
  }
View Full Code Here


     */
    List socketReceivers =
      pluginRegistry.getPlugins(SocketReceiver.class);

    for (Iterator iter = socketReceivers.iterator(); iter.hasNext();) {
      SocketReceiver element = (SocketReceiver) iter.next();
      element.addSocketNodeEventListener(listener);
    }
  }
View Full Code Here

     */
    List socketReceivers =
      pluginRegistry.getPlugins(SocketReceiver.class);

    for (Iterator iter = socketReceivers.iterator(); iter.hasNext();) {
      SocketReceiver element = (SocketReceiver) iter.next();
      element.addSocketNodeEventListener(listener);
    }
  }
View Full Code Here

          logger.debug(eventBatchEntrys.toString());
        }
      });
    LogManager.getRootLogger().addAppender(handler);

    SocketReceiver receiver = new SocketReceiver(4445);
    LogManager.getLoggerRepository().getPluginRegistry().addPlugin(receiver);
    receiver.activateOptions();
    Thread.sleep(60000);
  }
View Full Code Here

TOP

Related Classes of org.apache.log4j.net.SocketReceiver$SocketDetail

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.