Package org.slf4j

Examples of org.slf4j.Logger.info()


            st.append(StringUtils.pad("PUSHED ", -15, " "));
            st.append(StringUtils.pad("POPPED ", -15, " "));
            st.append(StringUtils.pad("(DIFF)", -15, " "));
            float[] times = new float[nbIt];
            for (int j = 0; j < PropagationEngineFactory.values().length; j++) {
                log.info(st.toString());
                st.setLength(0);
                st.append("-- " + j + " ------------------------------------------------------------------------------------\n");
                for (int i = 0; i < nbIt; i++) {
                    Solver rand = modeler(n);
                    PropagationEngineFactory.values()[j].make(rand);
View Full Code Here


                    rand.findAllSolutions();
                    st.append(StringUtils.pad(String.format("%.3f ", rand.getMeasures().getInitialPropagationTimeCount()), -7, " "));
                    times[i] = rand.getMeasures().getInitialPropagationTimeCount();
                    st.append(StringUtils.pad(String.format("%d ", rand.getMeasures().getNodeCount()), -7, " "));
                    st.append(StringUtils.pad(String.format("%d ", rand.getMeasures().getBackTrackCount()), -7, " "));
                    log.info(st.toString());
                    st.setLength(0);
                }
                st.append(StringUtils.pad(String.format("MOYENNE : %fms ", mean(prepare(times))), -15, " "));
                st.append(StringUtils.pad(String.format("DEVIATION : %fms ", standarddeviation(prepare(times))), -15, " "));
                log.info(st.toString());
View Full Code Here

                    log.info(st.toString());
                    st.setLength(0);
                }
                st.append(StringUtils.pad(String.format("MOYENNE : %fms ", mean(prepare(times))), -15, " "));
                st.append(StringUtils.pad(String.format("DEVIATION : %fms ", standarddeviation(prepare(times))), -15, " "));
                log.info(st.toString());
                st.setLength(0);
            }
        }
    }
View Full Code Here

    public void testSLF4J() throws Exception {
        Logger logsrv = LoggerFactory.getLogger(LogServiceTest.class);
        String msg = "LogServiceTest SLF4J ";
        logsrv.error(msg + " ERROR");
        logsrv.warn(msg + " WARN");
        logsrv.info(msg + " INFO");
        logsrv.debug(msg + " DEBUG");
    }

    private LogService getLogService(ModuleContext context) {
        ServiceReference<LogService> sref = context.getServiceReference(LogService.class);
View Full Code Here

    private Logger compliantLogger()
    {
        Logger logger = mockLogger();

        logger.info(EasyMock.isA(String.class));

        EasyMock.expectLastCall().atLeastOnce();

        return logger;
    }
View Full Code Here

        Logger logger = (Logger) jobDetail.getJobDataMap().get( AbstractJob.LOGGER );

        String jobName = jobDetail.getName();

        logger.info( ">>>>>>>>>>>>>>>>>>>>> Executing purge job (" + jobName + ")..." );

        Continuum continuum = (Continuum) jobDetail.getJobDataMap().get( ContinuumSchedulerConstants.CONTINUUM );

        ContinuumPurgeManager purgeManager = continuum.getPurgeManager();
       
View Full Code Here

        Logger logger = (Logger) jobDetail.getJobDataMap().get( AbstractJob.LOGGER );

        String jobName = jobDetail.getName();

        logger.info( ">>>>>>>>>>>>>>>>>>>>> Executing build job (" + jobName + ")..." );

        Continuum continuum = (Continuum) jobDetail.getJobDataMap().get( ContinuumSchedulerConstants.CONTINUUM );

        Schedule schedule = (Schedule) jobDetail.getJobDataMap().get( ContinuumSchedulerConstants.SCHEDULE );
View Full Code Here

    public static void info( Session session, String message )
    {
        Logger log = getLogger( session );
        if( log.isInfoEnabled() )
        {
            log.info( String.valueOf( session.getAttribute( PREFIX ) ) + message );
        }
    }

    public static void info( Session session, String message, Throwable cause )
    {
View Full Code Here

    public static void info( Session session, String message, Throwable cause )
    {
        Logger log = getLogger( session );
        if( log.isInfoEnabled() )
        {
            log.info( String.valueOf( session.getAttribute( PREFIX ) ) + message, cause );
        }
    }

    public static void warn( Session session, String message )
    {
View Full Code Here

    }

    @Override
    public void messageReceived(IoSession session, Object message) {
        Logger log = LoggerFactory.getLogger(ChatProtocolHandler.class);
        log.info("received: " + message);
        String theMessage = (String) message;
        String[] result = theMessage.split(" ", 2);
        String theCommand = result[0];

        try {
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.