Package net.sf.gluebooster.java.booster.essentials.logging

Examples of net.sf.gluebooster.java.booster.essentials.logging.LogBooster


      // IoBasicBoostUtils.redirect(System.err, delegate, false);
      // System.out.println("third line");

      RootDocDelegate newRootDoc = new RootDocDelegate(root,
          root.options(),
          new LogBooster(BoostedStandardDoclet.class), true);

      new ExpandingRootDocHandler().evaluate(newRootDoc);

      ExampleCreatingRootDocHandler.linkToGeneratedExamples(newRootDoc);
View Full Code Here


   * Gets the log that is used by the root.
   *
   * @return this log if the root has no log.
   */
  protected LogBooster getProtocol(RootDoc root) {
    LogBooster result = null;

    if (root instanceof RootDocDelegate) {
      result = ((RootDocDelegate) root).getProtocol();
    }

View Full Code Here

   * @return root
   */
  public static RootDoc linkToGeneratedExamples(RootDoc root) throws Exception{

    ExampleCreatingRootDocHandler handler = createDefaultHandler(root);
    LogBooster protocol = handler.getProtocol(root);
    protocol.debug("linkToGeneratedExamples");

    HashSet<Doc> foundExamples = new HashSet<Doc>();
    for (ClassDoc classDoc: root.classes()){
      handler.modify(classDoc, classDoc, foundExamples, protocol);
     
      for (ConstructorDoc constructor: classDoc.constructors()){
        handler.modify(classDoc, constructor, foundExamples, protocol);
      }
      for (MethodDoc method:  classDoc.methods()){
        handler.modify(classDoc, method, foundExamples, protocol);
      }
    }
   
    protocol.info("created links to examples for: ", foundExamples);

    return root;
  }
View Full Code Here

      try {
        int index = ContainerBoostUtils.getIndexOfRowStartingWith(
            options, PROTOCOL, false);
        if (index > 0) {
          String logConfiguration = options[index][1];
          protocol = new LogBooster(logConfiguration);
          canCloseProtocol = true;
          options = ContainerBoostUtils.removeRow(options, index);

          index = ContainerBoostUtils.getIndexOfRowStartingWith(
              options, PROTOCOL_LEVEL, false);
View Full Code Here

  private Object name;
  /**
   * Default constructor.
   */
  public BoostedObject(){
    log = new LogBooster(getClass());
  }
View Full Code Here

TOP

Related Classes of net.sf.gluebooster.java.booster.essentials.logging.LogBooster

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.