Java 类org.apache.commons.logging.impl.LogFactoryImpl 实例源码

项目:klapersuite    文件:LazyXpand.java   
public static LazyXpand factory(String template, Outlet[] outlets,
        EPackage[] ePackages, HashMap<String, EObject> slots, String encoding) {
    //TODO remove the logging trick to let xpand work
       String value = System.getProperty(LogFactoryImpl.LOG_PROPERTY);
       System.setProperty(LogFactoryImpl.LOG_PROPERTY, "org.apache.commons.logging.impl.NoOpLog");

       LazyXpand job = new LazyXpand(
                       slots, 
                       ePackages, 
                       outlets, 
                       template,
                       encoding);

       //TODO remove the logging trick to let xpand work
       System.setProperty(LogFactoryImpl.LOG_PROPERTY, value);
    return job;
}
项目:qaf    文件:AbstractTestPage.java   
public AbstractTestPage(UiTestBase<D> testBase) {
    this.testbase = testBase;

    logger = LogFactoryImpl.getLog(this.getClass());
    driver = testbase.getDriver();

    this.pageProps = ConfigurationManager.getBundle();
    initWebElements();
}
项目:qaf    文件:TestNGTestCase.java   
public TestNGTestCase() {
    logger = LogFactoryImpl.getLog(this.getClass());
}
项目:qaf    文件:AbstractScenarioFileParser.java   
public AbstractScenarioFileParser() {
    logger = LogFactoryImpl.getLog(getClass());
    gson = new GsonBuilder().registerTypeAdapter(Map.class, new GsonObjectDeserializer()).create();
    this.includeGroups = new ArrayList<String>();
    this.excludeGroups = new ArrayList<String>();
}
项目:qaf    文件:AssertionService.java   
public AssertionService() {
    logger = LogFactoryImpl.getLog(this.getClass());
    checkPointResults = new ArrayList<CheckpointResultBean>();
}
项目:perf4j    文件:CommonsLogStopWatchTest.java   
protected void setUp() throws Exception {
    super.setUp();

    originalLogFactoryAttribute = (String) LogFactory.getFactory().getAttribute(LogFactoryImpl.LOG_PROPERTY);
    LogFactory.getFactory().setAttribute(LogFactoryImpl.LOG_PROPERTY, SimpleLog.class.getName());
}
项目:perf4j    文件:CommonsLogStopWatchTest.java   
protected void tearDown() throws Exception {
    LogFactory.getFactory().setAttribute(LogFactoryImpl.LOG_PROPERTY, originalLogFactoryAttribute);
    super.tearDown();
}