Package org.apache.commons.logging

Examples of org.apache.commons.logging.Log.debug()


            for(Iterator i = ruleFinders.iterator();
                i.hasNext() && ruleLoader == null; ) {
                   
                RuleFinder finder = (RuleFinder) i.next();
                if (debug) {
                    log.debug("checking finder of type " + finder.getClass().getName());
                }
                ruleLoader = finder.findLoader(digester, pluginClass, props);
            }
        }
        catch(PluginException e) {
View Full Code Here


                "Unable to locate plugin rules for plugin"
                + " with id [" + id + "]"
                + ", and class [" + pluginClass.getName() + "]"
                + ":" + e.getMessage(), e.getCause());
        }
        log.debug("scanned ruleFinders.");
       
        return ruleLoader;
    }
}
View Full Code Here

     */
    public void addRules(Digester digester, String path) {
        Log log = digester.getLogger();
        boolean debug = log.isDebugEnabled();
        if (debug) {
            log.debug(
                "LoaderSetProperties loading rules for plugin at path ["
                + path + "]");
        }

        digester.addSetProperties(path);
View Full Code Here

        train_isDebugEnabled(log, true);

        // The point is, we're choosing the constructor with the largest number of parameters.

        log
                .debug(contains("Invoking constructor org.apache.tapestry.ioc.internal.MultipleConstructorsAutobuildService(StringHolder)"));

        train_getServiceId(resources, "StringHolder");
        train_getServiceLog(resources, log);
        train_getServiceInterface(resources, StringHolder.class);
View Full Code Here

        train_getModuleBuilder(resources, fixture);

        train_isDebugEnabled(log, true);

        log.debug(IOCMessages.invokingMethod(CREATOR_DESCRIPTION));

        replay();

        ObjectCreator sc = new ServiceBuilderMethodInvoker(resources, CREATOR_DESCRIPTION, method);
View Full Code Here

        train_getModuleBuilder(resources, fixture);

        train_isDebugEnabled(log, true);

        log.debug(IOCMessages.invokingMethod(CREATOR_DESCRIPTION));

        // This simulates what the real stack does when it sees @Value("Injected")

        expect(resources.getObject(eq(String.class), isA(AnnotationProvider.class))).andReturn(
                "Injected");
View Full Code Here

       try {
          Log log = LogFactory.getLog(Log4jService.class);
          log.info("----------------------------------------------");
          log.info("Started Logging Service");
          if (log.isDebugEnabled()) {
              log.debug("Log4jService created with configFileName=" + this.configurationFile + ", refreshPeriodSeconds=" + this.refreshPeriod);
          }
          log.info("Runtime Information:");
          log.info("  Install Directory = " + DirectoryUtils.getGeronimoInstallDirectory().toString());
          log.info("  JVM in use = " + JvmVendor.getJvmInfo());
          log.info("Java Information:");
View Full Code Here

       try {
          Log log = LogFactory.getLog(Log4jService.class);
          log.info("----------------------------------------------");
          log.info("Started Logging Service");
          if (log.isDebugEnabled()) {
              log.debug("Log4jService created with configFileName=" + this.configurationFile + ", refreshPeriodSeconds=" + this.refreshPeriod);
          }
          log.info("Runtime Information:");
          log.info("  Install Directory = " + DirectoryUtils.getGeronimoInstallDirectory().toString());
          log.info("  JVM in use = " + JvmVendor.getJvmInfo());
          log.info("Java Information:");
View Full Code Here

    private void logEnvInfo() {
       try {
          Log log = LogFactory.getLog(Log4jService.class);
          log.info("----------------------------------------------");
          log.info("Started Logging Service");
          log.debug("Log4jService created with configFileName=" + this.configurationFile +
                    ", refreshPeriodSeconds=" + this.refreshPeriod);
          log.info("Runtime Information:");
          log.info("  Install Directory = " + DirectoryUtils.getGeronimoInstallDirectory().toString());
          log.info("  JVM in use = " + System.getProperty("java.vendor") + " Java " + System.getProperty("java.version"));
          log.info("Java Information:");
View Full Code Here

            PropertyUtils.write(target, defaultPropertyName, facetValue);

            Log log = factoryParameters.getLog();

            if (log.isDebugEnabled())
                log.debug("Autowired property " + defaultPropertyName + " to " + facetValue);

            return defaultPropertyName;
        }

        return null;
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.