Examples of activateOptions()


Examples of org.apache.log4j.plugins.Plugin.activateOptions()

   
//    TODO this should also be fixed up, as VFS bits and pieces might not be built in an Ant build when they don't have all the VFS jars local
    try {
      Class vfsPluginClass = Class.forName("org.apache.log4j.chainsaw.vfs.VFSPlugin");
      Plugin vfsPlugin = (Plugin) vfsPluginClass.newInstance();
      vfsPlugin.activateOptions();
      pluginRegistry.addPlugin(vfsPlugin);
      MessageCenter.getInstance().getLogger().info("Looks like VFS is available... WooHoo!");
    } catch (Throwable e) {
      MessageCenter.getInstance().getLogger().error("Doesn't look like VFS is available", e);
    }
View Full Code Here

Examples of org.apache.log4j.plugins.Plugin.activateOptions()

      pluginRegistry.addPlugin(p1);
      p1.activateOptions();
      pluginRegistry.addPlugin(p2);
      p2.activateOptions();
      pluginRegistry.addPlugin(p3);
      p3.activateOptions();
     
  }
}
View Full Code Here

Examples of org.apache.log4j.plugins.Receiver.activateOptions()

                simpleReceiver, new Object[] { new Integer(port) });

              simpleReceiver.setThreshold(Level.TRACE);

              pluginRegistry.addPlugin(simpleReceiver);
              simpleReceiver.activateOptions();
              receiversPanel.updateReceiverTreeInDispatchThread();
            } catch (Exception e) {
              MessageCenter.getInstance().getLogger().error(
                "Error creating Receiver", e);
              MessageCenter.getInstance().getLogger().info(
View Full Code Here

Examples of org.apache.log4j.plugins.Receiver.activateOptions()

              Receiver selectedReceiver = getCurrentlySelectedReceiver();
              if(selectedReceiver == null){
                return;
              }
              selectedReceiver.shutdown();
              selectedReceiver.activateOptions();
            }
          };

      restartReceiverButtonAction.putValue(
        Action.SHORT_DESCRIPTION,
View Full Code Here

Examples of org.apache.log4j.plugins.Receiver.activateOptions()

                    for (Iterator iter = allReceivers.iterator();
                        iter.hasNext();) {
                      Receiver item = (Receiver) iter.next();
                      item.shutdown();
                      item.activateOptions();
                    }

                    updateReceiverTreeInDispatchThread();
                    MessageCenter.getInstance().getLogger().info(
                      "All Receivers have been (re)started");
View Full Code Here

Examples of org.apache.log4j.plugins.Receiver.activateOptions()

              Receiver selectedReceiver = getCurrentlySelectedReceiver();
              if(selectedReceiver == null){
                return;
              }
              selectedReceiver.shutdown();
              selectedReceiver.activateOptions();
            }
          };

      restartReceiverButtonAction.putValue(
        Action.SHORT_DESCRIPTION,
View Full Code Here

Examples of org.apache.log4j.plugins.Receiver.activateOptions()

                    for (Iterator iter = allReceivers.iterator();
                        iter.hasNext();) {
                      Receiver item = (Receiver) iter.next();
                      item.shutdown();
                      item.activateOptions();
                    }

                    updateReceiverTreeInDispatchThread();
                    MessageCenter.getInstance().getLogger().info(
                      "All Receivers have been (re)started");
View Full Code Here

Examples of org.apache.log4j.plugins.Receiver.activateOptions()

                simpleReceiver, new Object[] { new Integer(port) });

              simpleReceiver.setThreshold(Level.DEBUG);

              pluginRegistry.addPlugin(simpleReceiver);
              simpleReceiver.activateOptions();
              receiversPanel.updateReceiverTreeInDispatchThread();
            } catch (Exception e) {
              MessageCenter.getInstance().getLogger().error(
                "Error creating Receiver", e);
              MessageCenter.getInstance().getLogger().info(
View Full Code Here

Examples of org.apache.log4j.receivers.db.ConnectionSource.activateOptions()

        if ("connectionSource".equals(element.getNodeName())) {
            Object instance =
                    DOMConfigurator.parseElement(element, props, ConnectionSource.class);
            if (instance instanceof ConnectionSource) {
               ConnectionSource source = (ConnectionSource) instance;
               source.activateOptions();
               setConnectionSource(source);
            }
            return true;
        }
        return false;
View Full Code Here

Examples of org.apache.log4j.rolling.FixedWindowRollingPolicy.activateOptions()

    FixedWindowRollingPolicy rolling = new FixedWindowRollingPolicy();
    rolling.setMinIndex(1);
    rolling.setMaxIndex(maxBackupIndex);
    rfa.setFile(rfa.getFile());
    rolling.setFileNamePattern(rfa.getFile() + ".%i");
    rolling.activateOptions();
    rfa.setRollingPolicy(rolling);

    rfa.activateOptions();
  }
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.