Package org.apache.avalon.framework.logger

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


    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 Main()
    {
        // default initialization

        this.containerConfigValue   = "./conf/containerConfiguration.xml";
        this.logger                 = new ConsoleLogger();
        this.applicationHome        = ".";
        this.tempHome               = System.getProperty("java.io.tmpdir",".");
        this.applicationName        = "main";
        this.args                   = ( args != null ? args : new String[0] );
        this.isBlocking             = false;
View Full Code Here

    private String[] serviceManagerList;

    /** Constructor */
    public ServiceContainerConfiguration()
    {
        this.logger = new ConsoleLogger();
        this.containerFlavour = ServiceConstants.AVALON_CONTAINER_YAAFI;
        this.serviceContainerClazzName = ServiceConstants.CLAZZ_NAME;
        this.componentRolesLocation = ServiceConstants.COMPONENT_ROLE_VALUE;
        this.isComponentRolesEncrypted = "false";
        this.componentConfigurationLocation = ServiceConstants.COMPONENT_CONFIG_VALUE;
View Full Code Here

        suite.addTestSuite(AvalonLoggerTestCase.class);
        return suite;
    }

    public Log getLogObject() {
        Log log = new AvalonLogger(new ConsoleLogger());
        return log;
    }
View Full Code Here

     * @return a <code>Publication</code> value
     */
    public Publication getPublication() {
        if (this.publication == null) {
            try {
                Publication pub = PublicationFactory.getInstance(new ConsoleLogger())
                        .getPublication(this.webappUrl, this.servletContext);
                if (pub.exists()) {
                    this.publication = pub;
                    if (getIdentityMap().isDocument(this.webappUrl)) {
                        Document _document = getIdentityMap().getFromURL(this.webappUrl);
View Full Code Here

            log.debug("No workflow event.");
        } else {
            log.debug("Workflow event: [" + eventName + "]");
            // check for workflow instance first (task can initialize the workflow history)
            try {
                DocumentIdentityMap map = new DocumentIdentityMap(this.manager, new ConsoleLogger());
                this.document = map.getFromURL(webappUrl);
            } catch (DocumentBuildException e) {
                throw new ExecutionException(e);
            }
        }
View Full Code Here

     * @throws ExecutionException when something went wrong.
     */
    public void invokeTransition() throws ExecutionException {

        try {
            WorkflowUtil.invoke(this.manager, new ConsoleLogger(), this.document, getEventName());
        } catch (Exception e) {
            throw new ExecutionException(e);
        }
    }
View Full Code Here

     */
    protected void setUp() throws Exception {
        super.setUp();

        String level = System.getProperty("junit.test.loglevel", "" + ConsoleLogger.LEVEL_DEBUG);
        this.logger = new ConsoleLogger(Integer.parseInt(level));

        prepare();
    }
View Full Code Here

        super.setUp();
        commandLineContextDir = System.getProperty("java.io.tmpdir", "/tmp");
        new File(commandLineContextDir, "foo" + File.separator + "bar").mkdirs();

        String level = System.getProperty("junit.test.loglevel", "" + ConsoleLogger.LEVEL_DEBUG);
        Logger logger = new ConsoleLogger(Integer.parseInt(level));

        commandLineContext = new CommandLineContext(commandLineContextDir);
        commandLineContext.enableLogging(logger);
    }
View Full Code Here

     * @param jobGroup A job group.
     * @return A publication.
     * @throws PublicationException when the publication does not exist.
     */
    protected Publication getPublication(String jobGroup) throws PublicationException {
        PublicationFactory factory = PublicationFactory.getInstance(new ConsoleLogger());
        return factory.getPublication(jobGroup, getServletContextPath());
    }
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.