Package org.codehaus.spice.loggerstore

Examples of org.codehaus.spice.loggerstore.LoggerStore


            final Configuration logs = environment.getChild( "logs", false );
            //Load hierarchy before classloader placed in context as
            //that way the logFactory will not try to use the application
            //specific classloader to load the targets which will cause
            //CastClassExceptions
            final LoggerStore store =
                m_logManager.createHierarchy( logs,
                                              homeDirectory,
                                              workDirectory,
                                              data );
View Full Code Here


        final Map map = createLoggerManagerContext( context );
        // normalise file paths to circumvent backslash replacement
        final Map normalisedMap = normaliseFilePaths( map );
        if( null == logs )
        {
            LoggerStore store = null;
            store = scanForLoggerConfig( "SAR-INF/log4j.properties",
                                         PropertyLog4JLoggerStoreFactory.class.getName(),
                                         homeDirectory,
                                         workDirectory,
                                         normalisedMap );
View Full Code Here

        final boolean isPropertiesFile = location.endsWith( "properties" );
        final File file =
            ResourceUtil.getFileForResource( location,
                                             homeDirectory,
                                             workDirectory );
        LoggerStore store = null;
        if( null != file )
        {
            final HashMap config = new HashMap();
            if( isPropertiesFile )
            {
View Full Code Here

    }

    private void runtTestForConfigFile( final int index )
        throws Exception
    {
        final LoggerStore hierarchy = createHierarchy( index );
        final Logger rootLogger = hierarchy.getLogger();
        runLoggerTest( rootLogger, DEFAULT_LOGFILE );

        final Logger childLogger = hierarchy.getLogger( "myBlock" );
        runLoggerTest( childLogger, BLOCK_LOGFILE );
    }
View Full Code Here

        context.put( BlockContext.APP_NAME, sarMetaData.getName() );
        context.put( BlockContext.APP_HOME_DIR,
                     sarMetaData.getHomeDirectory() );
        context.put( "classloader", getClass().getClassLoader() );

        final LoggerStore store =
            logManager.createHierarchy( logs,
                                        sarMetaData.getHomeDirectory(),
                                        sarMetaData.getHomeDirectory(),
                                        context );
        return store;
View Full Code Here

TOP

Related Classes of org.codehaus.spice.loggerstore.LoggerStore

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.