Package org.apache.log4j.filter

Examples of org.apache.log4j.filter.LevelRangeFilter


    rfa.setLayout(layout);

    FixedWindowRollingPolicy swrp = new FixedWindowRollingPolicy();
    FilterBasedTriggeringPolicy fbtp = new FilterBasedTriggeringPolicy();

    LevelRangeFilter rf = new LevelRangeFilter();
    rf.setLevelMin(Level.INFO);
    fbtp.addFilter(rf);
    fbtp.activateOptions();

    swrp.setMinIndex(0);
    rfa.setFile("filterBased-test2.log");
View Full Code Here


    rfa.setLayout(layout);

    FixedWindowRollingPolicy swrp = new FixedWindowRollingPolicy();
    FilterBasedTriggeringPolicy fbtp = new FilterBasedTriggeringPolicy();

    LevelRangeFilter rf = new LevelRangeFilter();
    rf.setLevelMin(Level.INFO);
    fbtp.addFilter(rf);
    fbtp.activateOptions();

    swrp.setMinIndex(0);
    rfa.setFile("target/filterBased-test2.log");
View Full Code Here

TOP

Related Classes of org.apache.log4j.filter.LevelRangeFilter

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.