Examples of activateOptions()


Examples of org.apache.log4j.appender.TimeAndSizeRollingAppender.activateOptions()

      }

      timeSizeRollingAppender.setRollOnStartup(rollOnStartup);

      // refresh the appender
      timeSizeRollingAppender.activateOptions();

     
    //  timeSizeRollingAppender.setOriginalLayout();
    }
    if ( ! (appender instanceof org.apache.log4j.AsyncAppender))
View Full Code Here

Examples of org.apache.log4j.chainsaw.Generator.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.component.plugins.Plugin.activateOptions()

                }
                getPluginRegistry().addPlugin(plugin);
                plugin.setLoggerRepository(this);

                LogLog.debug("Pushing plugin on to the object stack.");
                plugin.activateOptions();
                return true;
            }
        }
        return false;
    }
View Full Code Here

Examples of org.apache.log4j.net.SMTPAppender.activateOptions()

        appender.setFrom(emailFrom);
        appender.setTo(emailTo);
        appender.setSubject(emailSubject);
        appender.setBufferSize(new Integer(bufferSize).intValue());
        appender.setLayout(layout);
        appender.activateOptions();
        logger.addAppender(appender);
    }

    /**
     * It adds a db as a destination for logger.
View Full Code Here

Examples of org.apache.log4j.net.SocketReceiver.activateOptions()

      }
    });
    LogManager.getRootLogger().addAppender(handler);
    SocketReceiver receiver = new SocketReceiver(4445);
    LogManager.getLoggerRepository().getPluginRegistry().addPlugin(receiver);
    receiver.activateOptions();
    Thread.sleep(60000);
  }

  /**
   * Exposes the current Data rate calculated. This is periodically updated by
View Full Code Here

Examples of org.apache.log4j.net.SocketReceiver.activateOptions()

      });
    LogManager.getRootLogger().addAppender(handler);

    SocketReceiver receiver = new SocketReceiver(4445);
    LogManager.getLoggerRepository().getPluginRegistry().addPlugin(receiver);
    receiver.activateOptions();
    Thread.sleep(60000);
  }

  /**
   * Exposes the current Data rate calculated.  This is periodically updated
View Full Code Here

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()

                    new ActionListener() {
                      public void actionPerformed(ActionEvent e2) {
                        dialog.dispose();
                        Plugin plugin = panel.getPlugin();
                        pluginRegistry.addPlugin(plugin);
                        plugin.activateOptions();
                        MessageCenter.getInstance().addMessage("Plugin '" + plugin.getName() + "' started");
                      }
                    });
                  dialog.show();
                } catch (Exception e1) {
View Full Code Here

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

                    new ActionListener() {
                      public void actionPerformed(ActionEvent e2) {
                        dialog.dispose();
                        Plugin plugin = panel.getPlugin();
                        pluginRegistry.addPlugin(plugin);
                        plugin.activateOptions();
                        MessageCenter.getInstance().addMessage("Plugin '" + plugin.getName() + "' started");
                      }
                    });
                  dialog.show();
                } catch (Exception e1) {
View Full Code Here

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

      } else if (tagName.equals(PLUGIN_TAG)) {
        Plugin plugin = parsePlugin(currentElement);

        if (plugin != null) {
          repository.getPluginRegistry().addPlugin(plugin);
          plugin.activateOptions();
        }
      }
    }

    // let listeners know the configuration just changed
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.