Examples of LineNumberFilter


Examples of org.apache.log4j.util.LineNumberFilter

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

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

Examples of org.apache.log4j.util.LineNumberFilter

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

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

Examples of org.apache.log4j.util.LineNumberFilter

    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

Examples of org.apache.log4j.util.LineNumberFilter

    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

Examples of org.apache.log4j.util.LineNumberFilter

    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

Examples of org.apache.log4j.util.LineNumberFilter

    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

Examples of org.apache.log4j.util.LineNumberFilter

    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.5"));
  }
View Full Code Here

Examples of org.apache.log4j.util.LineNumberFilter

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

Examples of org.apache.log4j.util.LineNumberFilter

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

Examples of org.apache.log4j.util.LineNumberFilter

    ControlFilter cf1 = new ControlFilter(new String[]{PAT4, EXCEPTION1,
                   EXCEPTION2, EXCEPTION3, EXCEPTION4, EXCEPTION5});
    Transformer.transform(
      TEMP, FILTERED,
      new Filter[] {
        cf1, new LineNumberFilter(), new RelativeTimeFilter(),
        new SunReflectFilter(), new JunitTestRunnerFilter()
      });
    assertTrue(Compare.compare(FILTERED, "witness/patternLayout.8"));
  }
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.