Package org.apache.avalon.framework.logger

Examples of org.apache.avalon.framework.logger.Logger.debug()


    public void test( Logger defaultLogger, String message )
    {
        final Logger logger = getLogger();
        //final String cat = logger.getCategory();
        //defaultLogger.info( "Category is " + cat );
        logger.debug( message );
        logger.info( message );
        logger.warn( message );
        logger.error( message );
        logger.fatalError( message );
    }
View Full Code Here


            this.socket = connection;
            reader = new BufferedReader(new InputStreamReader(socket.getInputStream())) {
                    public String readLine() throws IOException {
                        String s = super.readLine();
                        if ( DEBUG_PROTOCOL )
                            logger.debug("C: "+s);
                        return s;
                    }
                };
            writer = new PrintWriter(socket.getOutputStream()) {
                    public void println() {
View Full Code Here

                        flush();
                    }
                    public void println(String s) {
                        super.println(s);
                        if ( DEBUG_PROTOCOL )
                            logger.debug("S: "+s);
                    }
                };
            logger.info( "Connection from " + socket.getInetAddress());
        } catch (Exception e) {
            logger.error( "Cannot open connection from: " + e.getMessage(), e );
View Full Code Here

        public void debug( final String message )
        {
            final Logger logger = getLogger();
            try
            {
                logger.debug( message );
            }
            finally
            {
                releaseLogger();
            }
View Full Code Here

        public void debug( final String message, final Throwable throwable )
        {
            final Logger logger = getLogger();
            try
            {
                logger.debug( message, throwable );
            }
            finally
            {
                releaseLogger();
            }
View Full Code Here

    public void test( Logger defaultLogger, String message )
    {
        final Logger logger = getLogger();
        //final String cat = logger.getCategory();
        //defaultLogger.info( "Category is " + cat );
        logger.debug( message );
        logger.info( message );
        logger.warn( message );
        logger.error( message );
        logger.fatalError( message );
    }
View Full Code Here

        mockLog.expects(once()).method("debug").with(eq("JUnit"));
        mockLog.expects(once()).method("debug").with(eq("JUnit"), same(exception));

        if(logger.isDebugEnabled())
        {
            logger.debug("JUnit");
            logger.debug("JUnit", exception);
        }
    }

    /**
 
View Full Code Here

        mockLog.expects(once()).method("debug").with(eq("JUnit"), same(exception));

        if(logger.isDebugEnabled())
        {
            logger.debug("JUnit");
            logger.debug("JUnit", exception);
        }
    }

    /**
     * Test info level.
View Full Code Here

        manager.put( SourceFactory.ROLE + "Selector", selector );

        resolver.service( manager );


        logger.debug( "resolver created - but is this correct ?" );

        //
        // setup a protocol handler - TO BE DONE
        //
View Full Code Here

        //
        // setup a protocol handler - TO BE DONE
        //

        logger.debug( "help me - need to setup a handler" );

        //
        // test source URL creation - TO BE DONE
        //
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.