Package org.apache.avalon.framework.logger

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


        final MockControl loggerControl = createStrictControl( Logger.class );
        final Logger logger = (Logger)loggerControl.getMock(  );
        loggerControl.expectAndReturn( logger.getChildLogger( "default" ),
                                       childLoggerDefault );
        loggerControl.expectAndReturn( logger.isInfoEnabled(  ), true );
        logger.info( "ThreadPool named \"default\" created with maximum queue-size=2147483647,max-pool-size=5,min-pool-size=5,priority=5,isDaemon=false,keep-alive-time-ms=60000,block-policy=\"RUN\",shutdown-wait-time-ms=-1" );
        loggerControl.expectAndReturn( logger.getChildLogger( "mypool" ),
                                       childLoggerMyPool );
        loggerControl.expectAndReturn( logger.isInfoEnabled(  ), true );
        logger.info( "ThreadPool named \"mypool\" created with maximum queue-size=230,max-pool-size=15,min-pool-size=12,priority=1,isDaemon=false,keep-alive-time-ms=15500,block-policy=\"DISCARD\",shutdown-wait-time-ms=22200" );
        loggerControl.expectAndReturn( logger.isDebugEnabled(  ), true );
View Full Code Here


        loggerControl.expectAndReturn( logger.isInfoEnabled(  ), true );
        logger.info( "ThreadPool named \"default\" created with maximum queue-size=2147483647,max-pool-size=5,min-pool-size=5,priority=5,isDaemon=false,keep-alive-time-ms=60000,block-policy=\"RUN\",shutdown-wait-time-ms=-1" );
        loggerControl.expectAndReturn( logger.getChildLogger( "mypool" ),
                                       childLoggerMyPool );
        loggerControl.expectAndReturn( logger.isInfoEnabled(  ), true );
        logger.info( "ThreadPool named \"mypool\" created with maximum queue-size=230,max-pool-size=15,min-pool-size=12,priority=1,isDaemon=false,keep-alive-time-ms=15500,block-policy=\"DISCARD\",shutdown-wait-time-ms=22200" );
        loggerControl.expectAndReturn( logger.isDebugEnabled(  ), true );
        logger.debug( "Disposing all thread pools" );
        loggerControl.expectAndReturn( logger.isDebugEnabled(  ), true );
        logger.debug( "Disposing thread pool mypool" );
        loggerControl.expectAndReturn( logger.isDebugEnabled(  ), true );
View Full Code Here

        final MockControl loggerControl = createStrictControl( Logger.class );
        final Logger logger = (Logger)loggerControl.getMock(  );
        loggerControl.expectAndReturn( logger.getChildLogger( "default" ),
                                       childLoggerDefault );
        loggerControl.expectAndReturn( logger.isInfoEnabled(  ), true );
        logger.info( "ThreadPool named \"default\" created with maximum queue-size=2147483647,max-pool-size=5,min-pool-size=5,priority=5,isDaemon=false,keep-alive-time-ms=60000,block-policy=\"RUN\",shutdown-wait-time-ms=-1" );
        loggerControl.expectAndReturn( logger.getChildLogger( "anon-xxx" ),
                                       childLoggerAnon );
        loggerControl.setMatcher( MockControl.ALWAYS_MATCHER );
        loggerControl.expectAndReturn( logger.isInfoEnabled(  ), true );
        logger.info( "ThreadPool named \"anon-xxx\" created with maximum queue-size=2147483647,max-pool-size=5,min-pool-size=5,priority=10,isDaemon=false,keep-alive-time-ms=60000,block-policy=\"RUN\",shutdown-wait-time-ms=-1" );
View Full Code Here

        logger.info( "ThreadPool named \"default\" created with maximum queue-size=2147483647,max-pool-size=5,min-pool-size=5,priority=5,isDaemon=false,keep-alive-time-ms=60000,block-policy=\"RUN\",shutdown-wait-time-ms=-1" );
        loggerControl.expectAndReturn( logger.getChildLogger( "anon-xxx" ),
                                       childLoggerAnon );
        loggerControl.setMatcher( MockControl.ALWAYS_MATCHER );
        loggerControl.expectAndReturn( logger.isInfoEnabled(  ), true );
        logger.info( "ThreadPool named \"anon-xxx\" created with maximum queue-size=2147483647,max-pool-size=5,min-pool-size=5,priority=10,isDaemon=false,keep-alive-time-ms=60000,block-policy=\"RUN\",shutdown-wait-time-ms=-1" );
        loggerControl.setMatcher( MockControl.ALWAYS_MATCHER );
        loggerControl.expectAndReturn( logger.isDebugEnabled(  ), true );
        logger.debug( "Disposing all thread pools" );
        loggerControl.expectAndReturn( logger.isDebugEnabled(  ), true );
        logger.debug( "Disposing thread pool anon-xxx" );
View Full Code Here

        final MockControl loggerControl = createStrictControl( Logger.class );
        final Logger logger = (Logger)loggerControl.getMock(  );
        loggerControl.expectAndReturn( logger.getChildLogger( "default" ),
                                       childLogger );
        loggerControl.expectAndReturn( logger.isInfoEnabled(  ), true );
        logger.info( "ThreadPool named \"default\" created with maximum queue-size=2147483647,max-pool-size=5,min-pool-size=5,priority=5,isDaemon=false,keep-alive-time-ms=60000,block-policy=\"RUN\",shutdown-wait-time-ms=-1" );
        loggerControl.expectAndReturn( logger.isDebugEnabled(  ), true );
        logger.debug( "Starting the heart" );
        loggerControl.expectAndReturn( logger.isDebugEnabled(  ), true );
        logger.debug( "Entering loop" );
        loggerControl.expectAndReturn( logger.isDebugEnabled(  ), true );
View Full Code Here

        final MockControl loggerControl = createStrictControl( Logger.class );
        final Logger logger = (Logger)loggerControl.getMock(  );
        loggerControl.expectAndReturn( logger.getChildLogger( "default" ),
                                       childLogger );
        loggerControl.expectAndReturn( logger.isInfoEnabled(  ), true );
        logger.info( "ThreadPool named \"default\" created with maximum queue-size=2147483647,max-pool-size=5,min-pool-size=5,priority=5,isDaemon=false,keep-alive-time-ms=60000,block-policy=\"RUN\",shutdown-wait-time-ms=-1" );
        loggerControl.expectAndReturn( logger.isDebugEnabled(  ), true );
        logger.debug( "Starting the heart" );
        loggerControl.expectAndReturn( logger.isDebugEnabled(  ), true );
        logger.debug( "Entering loop" );
        loggerControl.expectAndReturn( logger.isDebugEnabled(  ), true );
View Full Code Here

        final MockControl loggerControl = createStrictControl( Logger.class );
        final Logger logger = (Logger)loggerControl.getMock(  );
        loggerControl.expectAndReturn( logger.getChildLogger( "default" ),
                                       childLogger );
        loggerControl.expectAndReturn( logger.isInfoEnabled(  ), true );
        logger.info( "ThreadPool named \"default\" created with maximum queue-size=2147483647,max-pool-size=5,min-pool-size=5,priority=5,isDaemon=false,keep-alive-time-ms=60000,block-policy=\"RUN\",shutdown-wait-time-ms=-1" );
        loggerControl.expectAndReturn( logger.isDebugEnabled(  ), true );
        logger.debug( "Starting the heart" );
        loggerControl.expectAndReturn( logger.isDebugEnabled(  ), true );
        logger.debug( "Entering loop" );
        loggerControl.expectAndReturn( logger.isDebugEnabled(  ), true );
View Full Code Here

        final MockControl loggerControl = createStrictControl( Logger.class );
        final Logger logger = (Logger)loggerControl.getMock(  );
        loggerControl.expectAndReturn( logger.getChildLogger( "default" ),
                                       childLoggerDefault );
        loggerControl.expectAndReturn( logger.isInfoEnabled(  ), true );
        logger.info( "ThreadPool named \"default\" created with maximum queue-size=2147483647,max-pool-size=5,min-pool-size=5,priority=5,isDaemon=false,keep-alive-time-ms=60000,block-policy=\"RUN\",shutdown-wait-time-ms=-1" );
        loggerControl.expectAndReturn( logger.isDebugEnabled(  ), true );
        logger.debug( "Starting the heart" );
        loggerControl.expectAndReturn( logger.isDebugEnabled(  ), true );
        logger.debug( "Entering loop" );
        loggerControl.expectAndReturn( logger.isDebugEnabled(  ), true );
View Full Code Here

        final MockControl loggerControl = createStrictControl( Logger.class );
        final Logger logger = (Logger)loggerControl.getMock(  );
        loggerControl.expectAndReturn( logger.getChildLogger( "default" ),
                                       childLogger );
        loggerControl.expectAndReturn( logger.isInfoEnabled(  ), true );
        logger.info( "ThreadPool named \"default\" created with maximum queue-size=2147483647,max-pool-size=5,min-pool-size=5,priority=5,isDaemon=false,keep-alive-time-ms=60000,block-policy=\"RUN\",shutdown-wait-time-ms=-1" );
        loggerControl.expectAndReturn( logger.isDebugEnabled(  ), true );
        logger.debug( "starting heart" );
        loggerControl.expectAndReturn( logger.isDebugEnabled(  ), true );
        logger.debug( "Entering loop" );
        loggerControl.expectAndReturn( logger.isDebugEnabled(  ), true );
View Full Code Here

        final MockControl loggerControl = createStrictControl( Logger.class );
        final Logger logger = (Logger)loggerControl.getMock(  );
        loggerControl.expectAndReturn( logger.getChildLogger( "default" ),
                                       childLogger );
        loggerControl.expectAndReturn( logger.isInfoEnabled(  ), true );
        logger.info( "ThreadPool named \"default\" created with maximum queue-size=2147483647,max-pool-size=5,min-pool-size=5,priority=5,isDaemon=false,keep-alive-time-ms=60000,block-policy=\"RUN\",shutdown-wait-time-ms=-1" );
        loggerControl.expectAndReturn( logger.isDebugEnabled(  ), true );
        logger.debug( "starting heart" );
        loggerControl.expectAndReturn( logger.isDebugEnabled(  ), true );
        logger.debug( "Entering loop" );
        loggerControl.expectAndReturn( logger.isDebugEnabled(  ), true );
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.