Package org.apache.avalon.framework.logger

Examples of org.apache.avalon.framework.logger.LogKitLogger


     */
    private void processXSP(String uri) throws Exception {
        String markupLanguage = "xsp";
        String programmingLanguage = "java";
        Environment env = new LinkSamplingEnvironment("/", context, attributes, null, cliContext,
                                                      new LogKitLogger(log));
        cocoon.precompile(uri, env, markupLanguage, programmingLanguage);
    }
View Full Code Here


     */
    private void processXMAP(String uri) throws Exception {
        String markupLanguage = "sitemap";
        String programmingLanguage = "java";
        Environment env = new LinkSamplingEnvironment("/", context, attributes, null, cliContext,
                                                      new LogKitLogger(log));
        cocoon.precompile(uri, env, markupLanguage, programmingLanguage);
    }
View Full Code Here

                deparameterizedURI,
                context,
                attributes,
                parameters,
                cliContext,
                new LogKitLogger(log));
        processLenient(env);
        return env.getLinks();
    }
View Full Code Here

                parameters,
                links,
                gatheredLinks,
                cliContext,
                stream,
                new LogKitLogger(log));

        // Here Cocoon can throw an exception if there are errors in processing the page
        cocoon.process(env);

        // if we get here, the page was created :-)
View Full Code Here

                parameters,
                empty,
                null,
                cliContext,
                new NullOutputStream(),
                new LogKitLogger(log));
        processLenient(env);
        return env.getContentType();
    }
View Full Code Here

                    configuration.getAttribute("logger", null);
                if (null == loggerName) {
                    // No logger attribute available, using standard logger
                    usedLogger = logger;
                } else {
                    usedLogger = new LogKitLogger(logkit.getLogger(loggerName));
                }
            }

            ((LogEnabled) component).enableLogging(usedLogger);
        }
View Full Code Here

           m_context = context;
       }

       public void setLogger( final org.apache.log.Logger logger )
       {
           enableLogging( new LogKitLogger( logger ) );
       }
View Full Code Here

            logger.setPriority( Priority.INFO );

            PatternFormatter formatter = new PatternFormatter( FORMAT );
            StreamTarget target = new StreamTarget( System.out, formatter );
            logger.setLogTargets( new LogTarget[]{target} );
            m_logger = new LogKitLogger( logger );
        }
        else
        {
            m_logger = m_loggerManager.getLoggerForCategory( "test." + name );
        }
View Full Code Here

                                  res,
                                  this.servletContext,
                                  (HttpContext) this.appContext.get(Constants.CONTEXT_ENVIRONMENT_CONTEXT),
                                  this.containerEncoding,
                                  formEncoding);
        env.enableLogging(new LogKitLogger(this.log));
        return env;
    }
View Full Code Here

                Class pcm = ClassUtils.loadClass(parentComponentManagerClass);
                Constructor pcmc = pcm.getConstructor(new Class[]{String.class});
                parentComponentManager = (ComponentManager) pcmc.newInstance(new Object[]{parentComponentManagerInitParam});

                if (parentComponentManager instanceof LogEnabled) {
                    ((LogEnabled) parentComponentManager).enableLogging(new LogKitLogger(log));
                }
                if (parentComponentManager instanceof Contextualizable) {
                    ((Contextualizable) parentComponentManager).contextualize(this.appContext);
                }
                if (parentComponentManager instanceof Initializable) {
View Full Code Here

TOP

Related Classes of org.apache.avalon.framework.logger.LogKitLogger

Copyright © 2018 www.massapicom. 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.