Package org.hornetq.core.logging

Examples of org.hornetq.core.logging.Logger


      HornetQServer server = super.createServer(false, config);

      server.start();

      Logger logger = Logger.getLogger(this.getClass());

      Assert.assertTrue(logger.getDelegate() instanceof JULLogDelegate);

      server.stop();
   }
View Full Code Here


      HornetQServer server = super.createServer(false, config);

      server.start();

      Logger logger = Logger.getLogger(this.getClass());

      Assert.assertTrue(logger.getDelegate() instanceof Log4jLogDelegate);

      server.stop();
   }
View Full Code Here

   {
      System.setProperty(Logger.LOGGER_DELEGATE_FACTORY_CLASS_NAME, Log4jLogDelegateFactory.class.getCanonicalName());

      Logger.reset();

      Logger logger = Logger.getLogger(this.getClass());

      Assert.assertTrue(logger.getDelegate() instanceof Log4jLogDelegate);
   }
View Full Code Here

   {
      System.setProperty(Logger.LOGGER_DELEGATE_FACTORY_CLASS_NAME, JULLogDelegateFactory.class.getCanonicalName());

      Logger.reset();

      Logger logger = Logger.getLogger(this.getClass());

      Assert.assertTrue(logger.getDelegate() instanceof JULLogDelegate);
   }
View Full Code Here

   public void testDefault() throws Exception
   {
      Logger.reset();

      Logger logger = Logger.getLogger(this.getClass());

      Assert.assertTrue(logger.getDelegate() instanceof JULLogDelegate);
   }
View Full Code Here

      HornetQServer server = super.createServer(false, config);

      server.start();

      Logger logger = Logger.getLogger(this.getClass());

      Assert.assertTrue(logger.getDelegate() instanceof JULLogDelegate);

      server.stop();
   }
View Full Code Here

      HornetQServer server = super.createServer(false, config);

      server.start();

      Logger logger = Logger.getLogger(this.getClass());

      Assert.assertTrue(logger.getDelegate() instanceof MyLogDelegateFactory.MyLogDelegate);

      server.stop();
   }
View Full Code Here

      HornetQServer server = super.createServer(false, config);

      server.start();

      Logger logger = Logger.getLogger(this.getClass());

      Assert.assertTrue(logger.getDelegate() instanceof MyLogDelegateFactory.MyLogDelegate);

      server.stop();
   }
View Full Code Here

   }

   /** Sends the message to both logger and System.out (for unit report) */
   public void logAndSystemOut(String message, Exception e)
   {
      Logger log = Logger.getLogger(this.getClass());
      log.info(message, e);
      System.out.println(message);
      e.printStackTrace(System.out);
   }
View Full Code Here

   }

   /** Sends the message to both logger and System.out (for unit report) */
   public void logAndSystemOut(String message)
   {
      Logger log = Logger.getLogger(this.getClass());
      log.info(message);
      System.out.println(this.getClass().getName() + "::" + message);
   }
View Full Code Here

TOP

Related Classes of org.hornetq.core.logging.Logger

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.