Package org.objectweb.util.monolog.api

Examples of org.objectweb.util.monolog.api.TopicalLogger.log()


    h2.setAttribute(Handler.PATTERN_ATTRIBUTE, "second handler: %m");
    h2.setAttribute("activation",mf);
    l.addHandler(h2);
    l = (TopicalLogger) mf.getLogger(
      "org.objectweb.util.monolog.TestHandlerLevel.testA.l1");
    l.log(BasicLevel.DEBUG, "(" + className + ") this message must be printed only one time");
  }
}
View Full Code Here


    catch (Exception e) {
      fail(e.getMessage());
    }
    l.setIntLevel(BasicLevel.DEBUG);
    String str = "configurability mode " + mode + " " + useClassPath;
    l.log(BasicLevel.DEBUG, str);
    String[] found = getLastLines("test.log", 1);
    assertNotNull("TestHelper error", found);
    assertNotNull("TestHelper error", found[0]);
    assertTrue("no log in collocated Handler", found[0].endsWith(str));
  }
View Full Code Here

    catch (Exception e) {
      fail(e.getMessage());
    }
    l2.setAdditivity(false);
    l2.setIntLevel(BasicLevel.DEBUG);
    l2.log(BasicLevel.DEBUG, "simple additivity");
    // The log message must be found in the file 2
    String[] found2 = getLastLines(LOG_FILE_NAME + '2', 1);
    assertNotNull("TestHelper error", found2);
    assertNotNull("TestHelper error", found2[0]);
    assertTrue("A.1",
View Full Code Here

      && found1[0].endsWith("simple additivity")) {
      fail("A.2");
    }

    l2 = (TopicalLogger) lf.getLogger("test.additivity.foo.bar");
    l2.log(BasicLevel.DEBUG, "simple additivity2");
    // The log message must be found in the file 2
    found2 = getLastLines(LOG_FILE_NAME + '2', 1);
    assertNotNull("TestHelper error", found2);
    assertNotNull("TestHelper error", found2[0]);
    assertTrue("A.3",
View Full Code Here

    }
    catch (Exception e) {
      fail(e.getMessage());
    }
    l2.setAdditivity(false);
    l2.log(BasicLevel.DEBUG, "simple additivity B");
    // The log message must be found in the file 2
    String[] found2 = getLastLines(LOG_FILE_NAME + '2', 1);
    assertNotNull("TestHelper error", found2);
    assertNotNull("TestHelper error", found2[0]);
    assertTrue("B.1",
View Full Code Here

      fail("B.2");
    }

    l2 = (TopicalLogger) lf.getLogger("test.additivity.foo.bar");
    l2.setIntLevel(BasicLevel.DEBUG);
    l2.log(BasicLevel.DEBUG, "simple additivity B 2");
    // The log message must be found in the file 2
    found2 = getLastLines(LOG_FILE_NAME + '2', 1);
    assertNotNull("TestHelper error", found2);
    assertNotNull("TestHelper error", found2[0]);
    assertTrue("B.3",
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.