Package org.apache.avalon.framework.logger

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


     * @return a <code>RCEnvironment</code> value
     * @deprecated We should detach the RC environment from the page envelope.
     */
    public RCEnvironment getRCEnvironment() {
        return RCEnvironment.getInstance(getPublication().getServletContext().getAbsolutePath(),
                new ConsoleLogger());
    }
View Full Code Here


      final DefaultConfiguration root = new DefaultConfiguration( "root", "" );
      final DefaultConfiguration configuration = new DefaultConfiguration( "shutdownTimeout", "" );
      configuration.setValue( "22" );
      root.addChild( configuration );

      final ConsoleLogger logger = new ConsoleLogger( ConsoleLogger.LEVEL_DISABLED );
      manager.enableLogging( logger );
      final AcceptorMonitor monitor = manager.getMonitor();
      assertTrue( "getMonitor() instanceof AvalonAcceptorMonitor", monitor instanceof AvalonAcceptorMonitor );
      final AvalonAcceptorMonitor dnaMonitor = (AvalonAcceptorMonitor) monitor;
      assertEquals( "logger", logger, dnaMonitor.getLogger() );
View Full Code Here

        m_configuration = new DefaultConfiguration( "a", "b" );
        m_configuration.setAttribute( "test", "test" );
        m_configuration.setValue( "test" );

        m_factory = new JarvConfigurationValidatorFactory();
        m_factory.enableLogging( new ConsoleLogger() );
        m_factory.configure( createConfiguration() );
        m_factory.initialize();
    }
View Full Code Here

    /**
     * Constructor
     */
    public ConsoleLoggerManager()
    {
        m_logger = new ConsoleLogger();
    }
View Full Code Here

            configuration.addChild(headers);

            // create a Cocoon instance
            cocoonFactory = new CocoonFactory();
            cocoonFactory.enableLogging(new ConsoleLogger());
            cocoonFactory.contextualize(rootCtx);
            cocoonFactory.configure(configuration);

        } catch (Exception e) {
            String message = "Cannot create cocoon factory";
View Full Code Here

     * @since
     */
    public void setUp() throws Exception {
        commandlineContextDir = System.getProperty("java.io.tmpdir", "/tmp");
        commandlineContext = new CommandlineContext(commandlineContextDir);
        commandlineContext.enableLogging( new ConsoleLogger() );
    }
View Full Code Here

     * Constructor
     */
    public YAAFIContainer()
    {
        // org.apache.log4j.BasicConfigurator.configure();
        this.enableLogging( new ConsoleLogger( ConsoleLogger.LEVEL_DEBUG ) );
        this.config = new ServiceContainerConfiguration();
    }
View Full Code Here

        getLogger().debug("Starting container...");

        this.config.setComponentConfigurationLocation( configFileName );
        this.config.setComponentRolesLocation( roleFileName );
        this.config.setParametersLocation( parametersFileName );
        this.config.setLogger( new ConsoleLogger( ConsoleLogger.LEVEL_DEBUG ) );

        File configFile = new File(configFileName);

        if (!configFile.exists())
        {
View Full Code Here

    private Log4JConfLoggerManager getManager( final String resourceName )
        throws Exception
    {
        final Configuration configuration = loadConfiguration( resourceName );
        final Log4JConfLoggerManager manager = new Log4JConfLoggerManager();
        ContainerUtil.enableLogging(manager, new ConsoleLogger());
        ContainerUtil.configure( manager, configuration );
        return manager;
    }
View Full Code Here

    /**
     * Hack constructor which creates an in-memory store, and creates a console logger.
     */
    public JamesImapHost()
    {
        enableLogging( new ConsoleLogger() );
        store = new InMemoryStore();
        setupLogger( store );
        subscriptions = new MailboxSubscriptions();
    }
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.