Esempio n. 1
0
  private PluginContext loadPlugins(PropertyMap properties, Log log) {

    PluginContext plug = new PluginContext(mResourceFactory);
    PluginFactoryConfig config = new PluginFactoryConfigSupport(properties, log, plug);

    try {
      PluginFactory.createPlugins(config, mPluginListener);
    } catch (PluginFactoryException e) {
      log.warn("Error loading plugins.");
      log.warn(e);
    }

    return plug;
  }
Esempio n. 2
0
 public synchronized void warn(Throwable t) {
   TeaStackTraceLine[] lines = getTeaStackTraceLines(t);
   if (lines == null) {
     super.warn(t);
   } else {
     if (isEnabled() && isWarnEnabled()) {
       dispatchLogTeaStackTrace(new TeaLogEvent(this, LogEvent.WARN_TYPE, lines));
     }
   }
 }