Java 类org.apache.velocity.runtime.log.SystemLogChute 实例源码

项目:gp2srv    文件:TemplateEngine.java   
private Properties getConfigurationAsProperties() {
    Properties result = new Properties();

    result.setProperty(RuntimeConstants.RESOURCE_LOADER, "string");
    result.setProperty(RuntimeConstants.VM_LIBRARY_AUTORELOAD, "false");
    result.setProperty(RuntimeConstants.VM_LIBRARY, RuntimeConstants.VM_LIBRARY_DEFAULT);
    result.setProperty("string.resource.loader.class", StringResourceLoader.class.getName());
    result.setProperty("string.resource.loader.modificationCheckInterval", "0");
    result.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM_CLASS, SystemLogChute.class.getName());

    return result;
}
项目:ipmi4j    文件:IpmiCommandNameTest.java   
@Before
public void setUp() {
    engine.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM, new SystemLogChute());
    engine.init();
}