Examples of LogKitLoggerStoreFactory


Examples of org.codehaus.spice.loggerstore.factories.LogKitLoggerStoreFactory

                            ConfigurationAlchemist.toAvalonConfiguration( logs ) );
                return loggerManager.createLoggerStore( config );
            }
            else if( version.equals( "1.1" ) )
            {
                final LoggerStoreFactory loggerManager = new LogKitLoggerStoreFactory();
                ContainerUtil.enableLogging( loggerManager, logger );
                final HashMap config = new HashMap();
                config.put( Logger.class.getName(), logger );
                config.put( Context.class.getName(),
                            new DefaultContext( normalisedMap ) );
                config.put( Configuration.class.getName(),
                            ConfigurationAlchemist.toAvalonConfiguration( logs ) );
                return loggerManager.createLoggerStore( config );
            }
            else if( version.equals( "log4j" ) )
            {
                final LoggerStoreFactory loggerManager = new DOMLog4JLoggerStoreFactory();
                ContainerUtil.enableLogging( loggerManager, logger );
                final HashMap config = new HashMap();
                final Element element = buildLog4JConfiguration( logs );
                m_expander.expandValues( element, normalisedMap );
                config.put( Element.class.getName(), element );
                return loggerManager.createLoggerStore( config );
            }
            else
            {
                final String message =
                    "Unknown logger version '" +
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.