Examples of enableLogging()


Examples of org.apache.cocoon.generation.ServerPagesGenerator.enableLogging()

        // Generator ouptut, if output-attribute was given
        XMLByteStreamCompiler compiler = null;

        try {
            generator.enableLogging(getLogger());
            generator.compose(this.manager);
            generator.setup(resolver, objectModel, source, parameters);

            // Setup generator output
            if (outputKey == null) {
View Full Code Here

Examples of org.apache.cocoon.mail.command.AbstractMailCommand.enableLogging()

            }
            Class clazz = getClassForCommand(cmd);
            if (clazz != null) {
                ama = (AbstractMailCommand) clazz.newInstance();
                // enable logging of the mail command
                ama.enableLogging(getLogger());
                // contextualize the mail command
                if (ama instanceof Contextualizable) {
                    ((Contextualizable) ama).contextualize(mailContext);
                }
                return ama;
View Full Code Here

Examples of org.apache.cocoon.mail.datasource.AbstractDataSource.enableLogging()

                // TODO: other classes?
                throw new MessagingException("Not yet supported: " + getObject());
            }

            if (ds != null) {
                ds.enableLogging(getMyLogger());
            }
            return ds;
        }

        public void setContentTo(SourceResolver resolver, List sources, MimePart part)
View Full Code Here

Examples of org.apache.cocoon.util.SimpleSourceResolver.enableLogging()

     * Create a simple source resolver.
     */
    protected SourceResolver createSourceResolver(Logger logger) throws ContextException {
        // Create our own resolver
        final SimpleSourceResolver resolver = new SimpleSourceResolver();
        resolver.enableLogging(logger);
        try {
            resolver.contextualize(this.context);
        } catch (ContextException ce) {
            throw new ContextException(
                    "Cannot setup source resolver.", ce);
View Full Code Here

Examples of org.apache.excalibur.instrument.manager.DefaultInstrumentManager.enableLogging()

        Logger imLogger =
            this.logKitManager.getLogger(conf.getAttribute( "logger", "core.instrument" ));

        // Set up the Instrument Manager
        DefaultInstrumentManager instrumentManager = new DefaultInstrumentManager();
        instrumentManager.enableLogging(new LogKitLogger(imLogger));
        instrumentManager.configure(conf);
        instrumentManager.initialize();

        if (log.isDebugEnabled()) {
            log.debug("Instrument manager created " + instrumentManager);
View Full Code Here

Examples of org.apache.excalibur.instrument.manager.DefaultInstrumentManager.enableLogging()

        final String imLoggerCategory = conf.getAttribute("logger", "core.instrument");
        Logger imLogger = this.loggerManager.getLoggerForCategory(imLoggerCategory);

        // Set up the Instrument Manager
        DefaultInstrumentManager instrumentManager = new DefaultInstrumentManager();
        instrumentManager.enableLogging(imLogger);
        instrumentManager.configure(conf);
        instrumentManager.initialize();

        if (getLogger().isDebugEnabled()) {
            getLogger().debug("Instrument manager created " + instrumentManager);
View Full Code Here

Examples of org.apache.excalibur.instrument.manager.DefaultInstrumentManager.enableLogging()

        final String imLoggerCategory = conf.getAttribute("logger", "core.instrument");
        Logger imLogger = this.loggerManager.getLoggerForCategory(imLoggerCategory);

        // Set up the Instrument Manager
        DefaultInstrumentManager instrumentManager = new DefaultInstrumentManager();
        instrumentManager.enableLogging(imLogger);
        instrumentManager.configure(conf);
        instrumentManager.initialize();

        if (getLogger().isDebugEnabled()) {
            getLogger().debug("Instrument manager created " + instrumentManager);
View Full Code Here

Examples of org.apache.excalibur.instrument.manager.impl.DefaultInstrumentManagerImpl.enableLogging()

        final String imLoggerCategory = conf.getAttribute("logger", "core.instrument");
        Logger imLogger = this.loggerManager.getLoggerForCategory(imLoggerCategory);

        // Set up the Instrument Manager
        DefaultInstrumentManagerImpl instrumentManager = new DefaultInstrumentManagerImpl();
        instrumentManager.enableLogging(imLogger);
        instrumentManager.configure(conf);
        instrumentManager.initialize();

        if (getLogger().isDebugEnabled()) {
            getLogger().debug("Instrument manager created " + instrumentManager);
View Full Code Here

Examples of org.apache.excalibur.source.impl.ResourceSourceFactory.enableLogging()

        // create a service selector to be included in a service manager
        // to be supplied to the resolver
        //

        final ResourceSourceFactory factory = new ResourceSourceFactory();
        factory.enableLogging( logger.getChildLogger( "factory" ) );

        // create a selector and add the factory to the selector,
        // add the selector to the manager, and service the resolver
        // NOTE: javadoc missing on the serviceable method
        //
View Full Code Here

Examples of org.apache.excalibur.source.impl.SourceResolverImpl.enableLogging()

        //
        // create the component to handle source resolution
        //

        final SourceResolverImpl resolver = new SourceResolverImpl();
        resolver.enableLogging( logger );

        //
        // create the context argument and set the root directory and
        // contextualize the resolver
        //
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.