Package org.apache.log4j.spi

Examples of org.apache.log4j.spi.Configurator.doConfigure()


    // create an instance of the configurator class
    Configurator configurator = getConfiguratorInstance();
   
    // if able to create configurator, then reconfigure using input stream
    if (configurator != null) {
      configurator.doConfigure(srcURL, this.getLoggerRepository());
    }
    else {
      getLogger().error(
        "watchdog \"{}\" could not create configurator, ignoring new configuration settings",
        this.getName());
View Full Code Here


    Configurator configurator = getConfiguratorInstance();
   
    // if able to create configurator, then reconfigure using input stream
    if (configurator != null) {
      try {
        configurator.doConfigure(srcStream, this.getLoggerRepository());
      } catch (Exception e) {
        getLogger().error(
        "watchdog " + this.getName() + " error working with configurator," +
        " ignoring new configuration settings", e);
      }
View Full Code Here

  }
} else {
  configurator = new PropertyConfigurator();
}

configurator.doConfigure(inputStream, hierarchy);
}


  /**
     Configure log4j given a URL.
View Full Code Here

     }
   } else {
     configurator = new PropertyConfigurator();
   }

   configurator.doConfigure(url, hierarchy);
  }
}
View Full Code Here

            log.trace("Configuring Log4j using configurator: " +
                    delegate + ", repository: " + repo);
        }

        // Now actually configure Log4j
        delegate.doConfigure(url, repo);
    }
}
View Full Code Here

/*     */       }
/*     */     } else {
/* 467 */       configurator = new PropertyConfigurator();
/*     */     }
/*     */
/* 470 */     configurator.doConfigure(url, hierarchy);
/*     */   }
/*     */ }

/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/thirdparty-all.jar
* Qualified Name:     org.apache.log4j.helpers.OptionConverter
View Full Code Here

            log.trace("Configuring Log4j using configurator: " +
                    delegate + ", repository: " + repo);
        }

        // Now actually configure Log4j
        delegate.doConfigure(url, repo);
    }
}
View Full Code Here

            log.trace("Configuring Log4j using configurator: " +
                    delegate + ", repository: " + repo);
        }

        // Now actually configure Log4j
        delegate.doConfigure(url, repo);
    }
}
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.