Package org.apache.log4j.chainsaw

Examples of org.apache.log4j.chainsaw.Generator


      setText(o.toString());
      setIcon(null);
     }else if(o instanceof Plugin){
       setText(((Plugin)o).getName());
     }else if(o instanceof Generator){
      Generator generator = (Generator) o;
      setText(generator.getName());
      setIcon(ChainsawIcons.ICON_HELP);
    }
    else {
      setText("(Unknown Type) :: " + o);
    }
View Full Code Here


        panel.setPlugin(r);

        try {
            Thread.sleep(3000);

            panel.setPlugin(new Generator("MyPlugin"));
        } catch (Exception e) {
            // TODO: handle exception
        }

View Full Code Here

public class Tutorial implements Runnable {
  /* (non-Javadoc)
   * @see java.lang.Runnable#run()
   */
  public void run() {
      Plugin p1 = new Generator("Generator 1");
      Plugin p2 = new Generator("Generator 2");
      Plugin p3 = new Generator("Generator 3");
     
      PluginRegistry pluginRegistry = LogManager.getLoggerRepository().getPluginRegistry();
      pluginRegistry.addPlugin(p1);
      p1.activateOptions();
      pluginRegistry.addPlugin(p2);
      p2.activateOptions();
      pluginRegistry.addPlugin(p3);
      p3.activateOptions();
     
  }
View Full Code Here

TOP

Related Classes of org.apache.log4j.chainsaw.Generator

Copyright © 2018 www.massapicom. 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.