Package org.jboss.logging

Examples of org.jboss.logging.Log4jLoggerPlugin


      String pattern = "[%d{ABSOLUTE}] [%t] %5p (%F:%L) - %m%n";
      PatternLayout layout = new PatternLayout(pattern);
      ConsoleAppender consoleAppender = new ConsoleAppender(layout);
      consoleAppender.setTarget(ConsoleAppender.SYSTEM_OUT);

      Log4jLoggerPlugin loggerPlugin = (Log4jLoggerPlugin) Logger.getLogger("org.jboss.remoting").getLoggerPlugin();
      org.apache.log4j.Logger logger = loggerPlugin.getLogger();
      logger.setLevel(XLevel.TRACE);
      logger.addAppender(consoleAppender);
      loggerPlugin = (Log4jLoggerPlugin) Logger.getLogger("org.jboss.test.remoting").getLoggerPlugin();
      logger = loggerPlugin.getLogger();
      logger.setLevel(XLevel.TRACE);
      logger.addAppender(consoleAppender);

      breakServer = -1;
      counter = 0;
View Full Code Here


      String pattern = "[%d{ABSOLUTE}] [%t] %5p (%F:%L) - %m%n";
      PatternLayout layout = new PatternLayout(pattern);
      ConsoleAppender consoleAppender = new ConsoleAppender(layout);
      consoleAppender.setTarget(ConsoleAppender.SYSTEM_OUT);

      Log4jLoggerPlugin loggerPlugin = (Log4jLoggerPlugin) Logger.getLogger("org.jboss.remoting").getLoggerPlugin();
      org.apache.log4j.Logger logger = loggerPlugin.getLogger();
      logger.setLevel(XLevel.TRACE);
      logger.addAppender(consoleAppender);
      loggerPlugin = (Log4jLoggerPlugin) Logger.getLogger("org.jboss.test.remoting").getLoggerPlugin();
      logger = loggerPlugin.getLogger();
      logger.setLevel(XLevel.TRACE);
      logger.addAppender(consoleAppender);

      breakServer = -1;
      counter = 0;
View Full Code Here

TOP

Related Classes of org.jboss.logging.Log4jLoggerPlugin

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.