Examples of enableLogging()


Examples of org.apache.avalon.fortress.impl.role.ECMMetaInfoManager.enableLogging()

            // if we use the ecm role manager then we don't wrap it inside a service meta manager!
            if ( roleManager instanceof ECMRoleManager )
            {
                final ECMMetaInfoManager metaManager =
                    new ECMMetaInfoManager( new Role2MetaInfoManager( roleManager ), classLoader );
                metaManager.enableLogging( m_loggerManager.getLoggerForCategory( "system.meta" ) );
                mim = metaManager;
            }
            else
            {
                final ServiceMetaManager metaManager =
View Full Code Here

Examples of org.apache.avalon.fortress.impl.role.FortressRoleManager.enableLogging()

            roleConfig.getAttribute("logger", "system.roles"));

    // Create a parent role manager with all the default roles
    final FortressRoleManager frm = new FortressRoleManager(null, loader);

    frm.enableLogging(rmLogger.getChildLogger("defaults"));
    frm.initialize();

    // Create a role manager with the configured roles
    final ConfigurableRoleManager rm = new ConfigurableRoleManager(frm);
View Full Code Here

Examples of org.apache.avalon.fortress.impl.role.ServiceMetaManager.enableLogging()

            }
            else
            {
                final ServiceMetaManager metaManager =
                      new ServiceMetaManager( new Role2MetaInfoManager( roleManager ), classLoader );
                metaManager.enableLogging( m_loggerManager.getLoggerForCategory( "system.meta" ) );
                metaManager.initialize();
                mim = metaManager;
            }

            assumeOwnership( mim );
View Full Code Here

Examples of org.apache.avalon.fortress.util.LifecycleExtensionManager.enableLogging()

    }

    private static void setupExtensions( FortressConfig config )
    {
        LifecycleExtensionManager extensions = new LifecycleExtensionManager();
        extensions.enableLogging(new NullLogger());
        extensions.addAccessorExtension( new Extensions() );

        config.setLifecycleExtensionManager(extensions);
    }
}
View Full Code Here

Examples of org.apache.cocoon.Cocoon.enableLogging()

         * @exception  ConfigurationException  thrown iff contextualizing of Cocoon instance fails
         * @exception  Exception               thrown iff initializing of Cocoon instance fails
         */
        public Cocoon createCocoon() throws Exception, ContextException, ConfigurationException {
            Cocoon cocoon = new Cocoon();
            cocoon.enableLogging(new LogKitLogger(logger));
            cocoon.contextualize(this.ctx);
            cocoon.setLogKitManager(logKitManager);
            cocoon.initialize();
            return cocoon;
        }
View Full Code Here

Examples of org.apache.cocoon.Cocoon.enableLogging()

                log.info("Reloading from: " + configFile.toExternalForm());
            }
            Cocoon c = (Cocoon) ClassUtils.newInstance("org.apache.cocoon.Cocoon");
            final String rootlogger = getInitParameter("cocoon-logger");
            if (rootlogger != null) {
                c.enableLogging(new LogKitLogger(this.logKitManager.getLogger(rootlogger)));
            } else {
                c.enableLogging(new LogKitLogger(log));
            }
            c.contextualize(this.appContext);
            c.compose(getParentComponentManager());
View Full Code Here

Examples of org.apache.cocoon.Cocoon.enableLogging()

            Cocoon c = (Cocoon) ClassUtils.newInstance("org.apache.cocoon.Cocoon");
            final String rootlogger = getInitParameter("cocoon-logger");
            if (rootlogger != null) {
                c.enableLogging(new LogKitLogger(this.logKitManager.getLogger(rootlogger)));
            } else {
                c.enableLogging(new LogKitLogger(log));
            }
            c.contextualize(this.appContext);
            c.compose(getParentComponentManager());
            c.setLogKitManager(this.logKitManager);
            if (this.enableInstrumentation) {
View Full Code Here

Examples of org.apache.cocoon.components.CocoonComponentManager.enableLogging()

            config = new DefaultConfiguration("", "");
        }
       
        final CocoonComponentManager manager = new CocoonComponentManager(this.parentManager);
       
        manager.enableLogging(getLogger());
       
        final LoggerManager loggerManager = (LoggerManager) this.parentManager.lookup(LoggerManager.ROLE);
        manager.setLoggerManager(loggerManager);

        if (null != this.context ) {
View Full Code Here

Examples of org.apache.cocoon.components.treeprocessor.InvokeContext.enableLogging()

              objectModel.put(ObjectModelHelper.THROWABLE_OBJECT, ex);
          }

      // Build a new context
      errorContext = new InvokeContext();
      errorContext.enableLogging(getLogger());
      errorContext.compose(this.manager);
     
      nodeSuccesfull = node.invoke(env, errorContext);
        } catch (Exception subEx) {
            getLogger().error("An exception occured in while handling errors at " + node.getLocation(), subEx);
View Full Code Here

Examples of org.apache.cocoon.components.treeprocessor.InvokeContext.enableLogging()

        try {
            prepare(context, env, ex);

            // Create error context
            InvokeContext errorContext = new InvokeContext(context.isBuildingPipelineOnly());
            errorContext.enableLogging(getLogger());
            errorContext.setRedirector(context.getRedirector());
            errorContext.compose(this.manager);
            try {
                // Process error handling node
                if (node.invoke(env, errorContext)) {
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.