Examples of CLLoggerWrapper


Examples of org.apache.cocoon.util.avalon.CLLoggerWrapper

    /**
     * Set the component manager for this serializer.
     */
    public void service(ServiceManager manager) throws ServiceException {
        this.manager = manager;
        this.logger = new CLLoggerWrapper(LoggerUtils.getChildLogger(manager, "fop"));
    }
View Full Code Here

Examples of org.apache.cocoon.util.avalon.CLLoggerWrapper

        super.setContentHandler(this.transformerHandler);
        super.setLexicalHandler(this.transformerHandler);
        // Is there even single implementation of LogEnabled TransformerHandler?
        if (this.transformerHandler instanceof LogEnabled) {
          ((LogEnabled) this.transformerHandler).enableLogging(new CLLoggerWrapper(getLogger()));
        }
        // According to TrAX specs, all TransformerHandlers are LexicalHandlers
        final SAXResult result = new SAXResult(consumer);
        result.setLexicalHandler(consumer);
        this.transformerHandler.setResult(result);
View Full Code Here

Examples of org.apache.cocoon.util.avalon.CLLoggerWrapper

        super.setContentHandler(this.transformerHandler);
        super.setLexicalHandler(this.transformerHandler);
        // Is there even single implementation of LogEnabled TransformerHandler?
        if (this.transformerHandler instanceof LogEnabled) {
            ((LogEnabled) this.transformerHandler).enableLogging(new CLLoggerWrapper(getLogger()));
        }
        // According to TrAX specs, all TransformerHandlers are LexicalHandlers
        final SAXResult result = new SAXResult(consumer);
        result.setLexicalHandler(consumer);
        this.transformerHandler.setResult(result);
View Full Code Here

Examples of org.apache.cocoon.util.avalon.CLLoggerWrapper

    public void setUseWorkDirectory(boolean useWorkDirectory) {
        this.useWorkDirectory = useWorkDirectory;
    }

    public void init() throws Exception {
        enableLogging(new CLLoggerWrapper(this.logger));
        this.workDir = new File(settings.getWorkDirectory());
        this.cacheDir = new File(settings.getCacheDirectory());
       
        try {
            if (this.useCacheDirectory) {
View Full Code Here

Examples of org.apache.cocoon.util.avalon.CLLoggerWrapper

                                        final ServiceManager manager,
                                        final Configuration configuration,
                                        final boolean initializeAndStart)
    throws Exception {
        if (component instanceof LogEnabled) {
            ((LogEnabled) component).enableLogging(new CLLoggerWrapper(logger));
        }

        if (context != null && component instanceof Contextualizable) {
            ((Contextualizable) component).contextualize(context);
        }
View Full Code Here

Examples of org.apache.cocoon.util.avalon.CLLoggerWrapper

                return bean;
            }

            if (bean instanceof LogEnabled) {
                ContainerUtil.enableLogging(bean,
                                            new CLLoggerWrapper(LoggerUtils.getChildLogger(beanFactory, info.getLoggerCategory())));
            } else if (bean instanceof AbstractLogEnabled && info.getLoggerCategory() != null) {
                ((AbstractLogEnabled) bean).setLogger(LoggerUtils.getChildLogger(beanFactory, info.getLoggerCategory()));
            }

            ContainerUtil.contextualize(bean, this.context);
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.