Package org.apache.avalon.framework.logger

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


        FortressConfig config = new FortressConfig( FortressConfig.createDefaultConfig() );
        config.setContainerConfiguration( "resource://org/apache/avalon/fortress/test/data/test1.xconf" );
        config.setLoggerManagerConfiguration( "resource://org/apache/avalon/fortress/test/data/test1.xlog" );

        m_instrManager = new DefaultInstrumentManagerImpl();
        ContainerUtil.enableLogging(m_instrManager, new ConsoleLogger());
        ContainerUtil.initialize(m_instrManager);
        config.setInstrumentManager(m_instrManager);

        m_manager = new ContextManager( config.getContext(), new ConsoleLogger() );
        m_manager.initialize();
    }
View Full Code Here


        super.setUp();
       
        DefaultConfiguration instrumentConfig = new DefaultConfiguration( "instrument" );
       
        m_instrumentManager = new DefaultInstrumentManagerImpl();
        m_instrumentManager.enableLogging( new ConsoleLogger( ConsoleLogger.LEVEL_DEBUG ) );
        m_instrumentManager.configure( instrumentConfig );
        m_instrumentManager.initialize();
    }
View Full Code Here

    public void testWithThreadContext()
        throws Exception
    {
        final DefaultThreadPool pool = new DefaultThreadPool( "default", 10 );
        pool.setDaemon( false );
        pool.enableLogging( new ConsoleLogger( ConsoleLogger.LEVEL_INFO ) );
        pool.execute( new DummyRunnable() );
    }
View Full Code Here

    public void testWithoutThreadContext()
        throws Exception
    {
        final DefaultThreadPool pool = new DefaultThreadPool( "default", 10 );
        pool.setDaemon( false );
        pool.enableLogging( new ConsoleLogger( ConsoleLogger.LEVEL_INFO ) );
        pool.execute( new DummyRunnable() );
    }
View Full Code Here

     */
    public void DONTtestShorthandReturnValues()
        throws Exception
    {
        FortressRoleManager roles = new FortressRoleManager( null, this.getClass().getClassLoader() );
        roles.enableLogging( new ConsoleLogger( ConsoleLogger.LEVEL_INFO ) );
        roles.initialize();

        checkRole( roles,
            "jdbc-datasource",
            "org.apache.avalon.excalibur.datasource.DataSourceComponent",
View Full Code Here

    public void testShorthandReturnValues()
            throws Exception
    {
        DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder();
        ConfigurableRoleManager roles = new ConfigurableRoleManager( null, this.getClass().getClassLoader() );
        roles.enableLogging( new ConsoleLogger( ConsoleLogger.LEVEL_INFO ) );
        roles.configure( builder.build( this.getClass().getClassLoader()
                .getResourceAsStream( "org/apache/avalon/fortress/impl/role/test/ConfigManager.roles" ) ) );

        checkRole( roles,
                "component1",
View Full Code Here

    }

    public void setUp() throws Exception
    {
        FortressRoleManager roles = new FortressRoleManager( null, this.getClass().getClassLoader() );
        roles.enableLogging( new ConsoleLogger( ConsoleLogger.LEVEL_INFO ) );
        roles.initialize();
        m_manager = new Role2MetaInfoManager( roles );
    }
View Full Code Here

    private void generalTest( Instrument[] instruments, Instrumentable[] children )
        throws Exception
    {
        AbstractLogEnabledInstrumentableImpl impl =
            new AbstractLogEnabledInstrumentableImpl( "base" );
        impl.enableLogging( new ConsoleLogger() );
       
        // Set the name
        impl.setInstrumentableName( "test" );
       
        // Add the instruments
View Full Code Here

    {
        final DirectoryResource resource =
            new DirectoryResource( dir.getCanonicalPath() );

        final DirectoryTCListener listener = new DirectoryTCListener();
        listener.enableLogging( new ConsoleLogger() );
        resource.addPropertyChangeListener( listener );

        final Iterator adds = added.iterator();
        while( adds.hasNext() )
        {
View Full Code Here

     *-------------------------------------------------------------*/
    public PoolComparisonProfileAbstract( String name )
    {
        super( name );

        m_logger = new ConsoleLogger( ConsoleLogger.LEVEL_INFO );
        m_poolLogger = m_logger.getChildLogger( "pool" );
    }
View Full Code Here

TOP

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

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.