Package com.arjuna.common.util.logging

Examples of com.arjuna.common.util.logging.Logi18n.warn()


    // Don't init the log in a member variable - it must be done AFTER System.out is changed.
    // TODO: this needs to be cleaner, or we need each test in it's own JVM!
    Logi18n log = LogFactory.getLogi18n(CLASS, "TestLevels");
    log.debug("testMessage", new Object[] {"1st", "debug"});
    log.info("testMessage", new Object[] {"1st", "info"});
    log.warn("testMessage", new Object[] {"1st", "warn"});
    log.error("testMessage", new Object[] {"1st", "error"});
    log.fatal("testMessage", new Object[] {"1st", "fatal"});
  }

  public static void verifyResult(String result, boolean expectReleveling) {
View Full Code Here


    // Don't init the log in a member variable - it must be done AFTER System.out is changed.
    // TODO: this needs to be cleaner, or we need each test in it's own JVM!
    Logi18n log = LogFactory.getLogi18n(CLASS, "TestLevels");
    log.debug("testMessage", new Object[] {"1st", "debug"});
    log.info("testMessage", new Object[] {"1st", "info"});
    log.warn("testMessage", new Object[] {"1st", "warn"});
    log.error("testMessage", new Object[] {"1st", "error"});
    log.fatal("testMessage", new Object[] {"1st", "fatal"});
  }

  public static void verifyResult(String result, boolean expectReleveling) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.