Package org.apache.log4j.util

Examples of org.apache.log4j.util.LineNumberFilter


    logger.debug("Message with embedded <![CDATA[<hello>hi</hello>]]>.");

    Transformer.transform(
      TEMP, FILTERED,
      new Filter[] {
        new LineNumberFilter(),
        new JunitTestRunnerFilter(),
        new XMLTimestampFilter(),
        new XMLLineAttributeFilter(),
        new SunReflectFilter(),
        new XMLDateFilter()
View Full Code Here


    Exception e = new Exception((String) null);
    logger.debug("hi", e);
    Transformer.transform(
      TEMP, FILTERED,
      new Filter[] { new LineNumberFilter(),
          new JunitTestRunnerFilter(),
          new SunReflectFilter(),
          new XMLTimestampFilter(),
          new XMLDateFilter()});
    assertTrue(Compare.compare(XSLTLayoutTestCase.class,
View Full Code Here

    MDC.put("key2", "val2");

    logger.debug("Hello");
    Transformer.transform(
      TEMP, FILTERED,
      new Filter[] { new LineNumberFilter(),
          new JunitTestRunnerFilter(),
          new XMLTimestampFilter(),
          new XMLDateFilter()});
    assertTrue(Compare.compare(XSLTLayoutTestCase.class,
            FILTERED, "witness/xml/xsltLayout.mdc.1"));
View Full Code Here

    MDC.put("<blahKey value=\"blah\"/>", "blahValue");

    logger.debug("Hello");
    Transformer.transform(
      TEMP, FILTERED,
      new Filter[] { new LineNumberFilter(),
          new JunitTestRunnerFilter(),
          new XMLTimestampFilter(),
          new XMLDateFilter()});
    assertTrue(Compare.compare(XSLTLayoutTestCase.class,
            FILTERED, "witness/xml/xsltLayout.mdc.2"));
View Full Code Here

        Logger logger = Logger.getLogger("org.apache.log4j.xml.XSLTLayoutTest");
        logger.debug("DEBUG message");
        logger.info("INFO message");
        Transformer.transform(
          "target/temp", "target/filtered",
          new Filter[] { new LineNumberFilter(),
              new JunitTestRunnerFilter(),
              new XMLTimestampFilter(),
              new XMLDateFilter()});
        assertTrue(Compare.compare(XSLTLayoutTest.class,
                "target/filtered", "witness/xml/xsltLayout.4"));
View Full Code Here

        Logger logger = Logger.getLogger("org.apache.log4j.xml.XSLTLayoutTest");
        logger.debug("DEBUG message");
        logger.info("INFO message");
        Transformer.transform(
          "target/temp", "target/filtered",
          new Filter[] { new LineNumberFilter(),
              new JunitTestRunnerFilter(),
              new XMLTimestampFilter(),
              new XMLDateFilter()});
        assertTrue(Compare.compare(XSLTLayoutTest.class,
                "target/filtered", "witness/xml/xsltLayout.4"));
View Full Code Here

    PropertyConfigurator.configure("input/patternLayout1.properties");
    common();
    Transformer.transform(
      TEMP, FILTERED,
      new Filter[] {
        new LineNumberFilter(), new SunReflectFilter(),
        new JunitTestRunnerFilter()
      });
    assertTrue(Compare.compare(FILTERED, "witness/patternLayout.1"));
  }
View Full Code Here

    ControlFilter cf1 = new ControlFilter(new String[]{PAT1, EXCEPTION1,
                   EXCEPTION2, EXCEPTION3, EXCEPTION4, EXCEPTION5});
    Transformer.transform(
      TEMP, FILTERED,
      new Filter[] {
        cf1, new LineNumberFilter(), new ISO8601Filter(),
        new SunReflectFilter(), new JunitTestRunnerFilter()
      });
    assertTrue(Compare.compare(FILTERED, "witness/patternLayout.2"));
  }
View Full Code Here

    ControlFilter cf1 = new ControlFilter(new String[]{PAT1, EXCEPTION1,
                   EXCEPTION2, EXCEPTION3, EXCEPTION4, EXCEPTION5});
    Transformer.transform(
      TEMP, FILTERED,
      new Filter[] {
        cf1, new LineNumberFilter(), new ISO8601Filter(),
        new SunReflectFilter(), new JunitTestRunnerFilter()
      });
    assertTrue(Compare.compare(FILTERED, "witness/patternLayout.3"));
  }
View Full Code Here

    ControlFilter cf1 = new ControlFilter(new String[]{PAT2, EXCEPTION1,
                   EXCEPTION2, EXCEPTION3, EXCEPTION4, EXCEPTION5});
    Transformer.transform(
      TEMP, FILTERED,
      new Filter[] {
        cf1, new LineNumberFilter(), new AbsoluteDateAndTimeFilter(),
        new SunReflectFilter(), new JunitTestRunnerFilter()
      });
    assertTrue(Compare.compare(FILTERED, "witness/patternLayout.4"));
  }
View Full Code Here

TOP

Related Classes of org.apache.log4j.util.LineNumberFilter

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.