Package org.apache.avalon.excalibur.logger

Examples of org.apache.avalon.excalibur.logger.LogKitLoggerManager


    if (cfg == null)
      return;

    // Make sure same hierarchy is used
    Hierarchy hier = Hierarchy.getDefaultHierarchy();
    LogKitLoggerManager manager = new LogKitLoggerManager(null, hier, null, null);

    DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder();
    try {
      Configuration c = builder.buildFromFile(cfg);
      Context ctx = new DefaultContext();
      manager.contextualize(ctx);
      manager.configure(c);
    } catch (IllegalArgumentException e) {
      // This happens if the default log-target id-ref specifies a
      // non-existent target
      System.out.println("Error processing logging config " + cfg);
      System.out.println(e.toString());
View Full Code Here


                        lmDefaultLoggerName, lmLoggerName );
            }
            else // LogKitLoggerManager
            {
                // Setup the Logger Manager
                m_loggerManager = new LogKitLoggerManager(
                        lmDefaultLoggerName, lmLoggerName );
            }

            ContainerUtil.enableLogging( m_loggerManager, getLogger() );
            ContainerUtil.contextualize( m_loggerManager, m_rootContext );
View Full Code Here

TOP

Related Classes of org.apache.avalon.excalibur.logger.LogKitLoggerManager

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.