Examples of enableLogging()


Examples of ch.hortis.sonar.mvn.mc.MetricsCollector.enableLogging()

      getLog().info("Parent module : " + mavenProject.getParent().getGroupId() + ":" + mavenProject.getParent().getArtifactId());
    }
    getLog().info("Collecting information for plugin " + report);

    MetricsCollector collector = report.getMetricsCollector();
    collector.enableLogging(getLog());
   
    Collection<ProjectMetricMeasure> measures = new ArrayList<ProjectMetricMeasure>();
    if (collector.initialize(mavenProject)) {
      Collection<MetricData> metricsData = collector.collectMeasures();
      measures = getMetrics( metricsData );
View Full Code Here

Examples of com.dianping.cat.analysis.PeriodTask.enableLogging()

      MessageAnalyzer analyzer = m_analyzerManager.getAnalyzer(name, startTime);
      MessageQueue queue = new DefaultMessageQueue(QUEUE_SIZE);
      PeriodTask task = new PeriodTask(m_serverStateManager, analyzer, queue, startTime);

      analyzers.put(name, analyzer);
      task.enableLogging(m_logger);
      m_tasks.add(task);
    }

    // hack for dependency
    MessageAnalyzer top = analyzers.get(TopAnalyzer.ID);
View Full Code Here

Examples of net.sourceforge.chaperon.parser.generator.ParserTableGenerator.enableLogging()

          return;
        }
        Grammar grammar = grammargenerator.getGrammar();

        ParserTableGenerator generator = new ParserTableGenerator(grammar);
        generator.enableLogging(logger);
        ParserTable parsertable = generator.getParserTable();

        if (parsertable != null)
        {
          //System.out.println(grammar.getTokens());
View Full Code Here

Examples of net.sourceforge.chaperon.parser.output.SAXEventAdapter.enableLogging()

        StringWriter stringOut = new StringWriter(); // Writer will be a String
        XMLSerializer serial = new XMLSerializer(stringOut, format);

        SAXEventAdapter adapter = new SAXEventAdapter(serial.asContentHandler(), ignorableTokens, false);
        adapter.enableLogging(new AntLogger(this, msgLevel));
        queue.fireEvents(adapter);

        FileOutputStream outputstream = new FileOutputStream(outFile);
        PrintWriter printstream = new PrintWriter(outputstream);
View Full Code Here

Examples of org.apache.avalon.cornerstone.blocks.masterstore.AvalonFileRepositoryMonitor.enableLogging()

    implements ObjectRepository, Contextualizable, Initializable, Configurable, LogEnabled
{

    public void enableLogging(Logger logger) {
        AvalonFileRepositoryMonitor avMonitor = new AvalonFileRepositoryMonitor();
        avMonitor.enableLogging(logger);
    }

    protected void initializeChild(AbstractFileRepository child) throws Exception {
        ((Initializable) child).initialize();
    }
View Full Code Here

Examples of org.apache.avalon.excalibur.component.ComponentHandler.enableLogging()

                                Object hint, Program generator)
            throws Exception {
        try {
            final ComponentHandler handler =
                    generator.getHandler(newManager, this.context, this.roles, this.logKitManager);
            handler.enableLogging(getLogger());
            handler.initialize();
            this.componentHandlers.put(hint, handler);
            if (getLogger().isDebugEnabled()) {
                getLogger().debug("Adding " + generator.getName() + " for " + hint);
            }
View Full Code Here

Examples of org.apache.avalon.excalibur.component.DefaultRoleManager.enableLogging()

        // Setup the RoleManager
        DefaultRoleManager roles = new DefaultRoleManager();

        Logger logger = lm.getLoggerForCategory(AVALON_LOG_CATEGORY);

        roles.enableLogging(logger);
        roles.configure(roleConfig);

        // Setup ECM
        manager = new ExcaliburComponentManager();
View Full Code Here

Examples of org.apache.avalon.excalibur.component.DefaultRoleManager.enableLogging()

        } finally {
            if (p != null) startupManager.release((Component)p);
        }

        DefaultRoleManager drm = new DefaultRoleManager();
        drm.enableLogging(getLogger().getChildLogger("roles"));
        drm.configure(roleConfig);
        roleConfig = null;

        try {
            p = (SAXParser)startupManager.lookup(SAXParser.ROLE);
View Full Code Here

Examples of org.apache.avalon.excalibur.component.DefaultRoleManager.enableLogging()

            } finally {
                startupManager.release((Component)p);
            }

            DefaultRoleManager urm = new DefaultRoleManager(drm);
            urm.enableLogging(getLogger().getChildLogger("roles").getChildLogger("user"));
            urm.configure(roleConfig);
            roleConfig = null;
            drm = urm;
        }
View Full Code Here

Examples of org.apache.avalon.excalibur.component.DefaultRoleManager.enableLogging()

        if (useRoles)
        {
            Configuration roleConfig = builder.buildFromFile(roleFileName);
            // Setup the RoleManager
            DefaultRoleManager roles = new DefaultRoleManager();
            roles.enableLogging(lm.getLoggerForCategory("org.apache.fulcrum"));
            roles.configure(roleConfig);
      this.manager.setRoleManager(roles);
        }
        // Setup ECM
        this.manager.setLoggerManager(lm);
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.