Examples of Slf4jLogChute


Examples of at.molindo.notify.render.velocity.SLF4JLogChute

  }

  public static RuntimeServices newRuntime() {
    try {
      RuntimeInstance runtime = new RuntimeInstance();
      runtime.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM, new SLF4JLogChute());
      runtime.setProperty(RuntimeConstants.RUNTIME_REFERENCES_STRICT, true);
      runtime.init();
      return runtime;
    } catch (Exception e) {
      throw new NotifyRuntimeException("failed to init velocity runtime", e);
View Full Code Here

Examples of at.molindo.notify.render.velocity.SLF4JLogChute

  }

  public static RuntimeServices newRuntime() {
    try {
      RuntimeInstance runtime = new RuntimeInstance();
      runtime.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM, new SLF4JLogChute());
      runtime.setProperty(RuntimeConstants.RUNTIME_REFERENCES_STRICT, true);
      runtime.init();
      return runtime;
    } catch (Exception e) {
      throw new NotifyRuntimeException("failed to init velocity runtime", e);
View Full Code Here

Examples of at.molindo.notify.render.velocity.SLF4JLogChute

  }

  public static RuntimeServices newRuntime() {
    try {
      RuntimeInstance runtime = new RuntimeInstance();
      runtime.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM, new SLF4JLogChute());
      runtime.setProperty(RuntimeConstants.RUNTIME_REFERENCES_STRICT, true);
      runtime.init();
      return runtime;
    } catch (Exception e) {
      throw new NotifyRuntimeException("failed to init velocity runtime", e);
View Full Code Here

Examples of com.alibaba.citrus.service.velocity.impl.Slf4jLogChute

        config.setProperty("path", "/templates");
        config.setProperty("resource.loader", "");

        rsvc.setConfiguration(config);
        rsvc.setProperty(RUNTIME_LOG_LOGSYSTEM, new Slf4jLogChute(log));
        rsvc.setApplicationAttribute(SpringResourceLoaderAdapter.SPRING_RESOURCE_LOADER_KEY, factory);

        rsvc.init();

        velocityLoader = new SpringResourceLoaderAdapter();
View Full Code Here

Examples of com.alibaba.citrus.service.velocity.impl.Slf4jLogChute

        TestEnvStatic.init();
    }

    @Before
    public void init() {
        logChute = new Slf4jLogChute(log);
    }
View Full Code Here

Examples of com.alibaba.citrus.service.velocity.impl.Slf4jLogChute

    }

    @Test
    public void create() {
        try {
            new Slf4jLogChute(null);
            fail();
        } catch (IllegalArgumentException e) {
            assertThat(e, exception("log"));
        }
    }
View Full Code Here

Examples of com.alibaba.citrus.service.velocity.impl.Slf4jLogChute

        config.setProperty("resource.loader", "");
        config.setProperty(PreloadedResourceLoader.PRELOADED_RESOURCES_KEY, preloadingResources());

        rsvc.setConfiguration(config);
        rsvc.setProperty(RUNTIME_LOG_LOGSYSTEM, new Slf4jLogChute(log));

        rsvc.init();

        velocityLoader = new PreloadedResourceLoader();
        velocityLoader.commonInit(rsvc, config);
View Full Code Here

Examples of com.seyren.core.util.velocity.Slf4jLogChute

        this.emailTemplateFileName = configOrDefault("TEMPLATE_EMAIL_FILE_PATH","com/seyren/core/service/notification/email-template.vm");
    }
   
    @PostConstruct
    public void init() {
        Velocity.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM, new Slf4jLogChute());
        Velocity.init();
    }
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.