Package org.apache.avalon.framework.logger

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


    {
        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


                        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 );
        }

        try {
View Full Code Here

            reader.close();
            writer.close();
            socket.close();
            scheduler.removeTrigger(this.toString());
            logger.info("Connection closed");
        } catch (Exception e) {
            doQUIT();
            //writer.println("502 Error closing connection.");
            //writer.flush();
            logger.error( "Exception during connection:" + e.getMessage(), e );
View Full Code Here

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

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

    {
        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("info").with(eq("JUnit"));
        mockLog.expects(once()).method("info").with(eq("JUnit"), same(exception));

        if(logger.isInfoEnabled())
        {
            logger.info("JUnit");
            logger.info("JUnit", exception);
        }
    }

    /**
 
View Full Code Here

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

        if(logger.isInfoEnabled())
        {
            logger.info("JUnit");
            logger.info("JUnit", exception);
        }
    }

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

                return;
            }
        }

        if (logger.isInfoEnabled()) {
            logger.info("Scheduling cron job named '" + name + "'");
        }

        Object job = null;
        String jobrole = null;
       
View Full Code Here

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

        if(logger.isInfoEnabled())
        {
            logger.info("JUnit");
            logger.info("JUnit", exception);
        }
    }

    /**
 
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.