Package org.slf4j

Examples of org.slf4j.Logger.debug()


    }

    public static void debug(IoSession session, String message) {
        Logger log = getLogger(session);
        if (log.isDebugEnabled()) {
            log.debug(String.valueOf(session.getAttribute(PREFIX)) + message);
        }
    }

    public static void debug(IoSession session, String message, Throwable cause) {
        Logger log = getLogger(session);
View Full Code Here


    }

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

    public static void info(IoSession session, String message) {
View Full Code Here

                                                                                                  logger, keyClass,
                                                                                                  valueType,
                                                                                                  keyToContribution,
                                                                                                  configuration);

            if (debug) logger.debug(IOCMessages.invokingMethod(def));

            def.contribute(module, locator, validating);
        }

    }
View Full Code Here

        for (ContributionDef def : contributions)
        {
            Configuration<T> validating = new ValidatingConfigurationWrapper<T>(serviceId, logger, valueType, def,
                                                                                configuration);

            if (debug) logger.debug(IOCMessages.invokingMethod(def));

            def.contribute(module, locator, validating);
        }
    }
View Full Code Here

        for (ContributionDef def : contributions)
        {
            OrderedConfiguration<T> validating = new ValidatingOrderedConfigurationWrapper<T>(serviceId, def, logger,
                                                                                              valueType, configuration);

            if (debug) logger.debug(IOCMessages.invokingMethod(def));

            def.contribute(module, locator, validating);
        }
    }
View Full Code Here

                ComponentEvent event = new ComponentEventImpl(currentEventType, componentId, currentContext, wrapped,
                                                              pageResources, logger);

                if (logger.isDebugEnabled())
                    logger.debug("Dispatch event: " + event);

                result |= component.dispatchEvent(event);

                if (event.isAborted()) return result;
            }
View Full Code Here

        train_isDebugEnabled(logger, true);

        // The point is, we're choosing the constructor with the largest number of parameters.

        logger
                .debug(contains(
                        "Invoking constructor org.apache.tapestry5.ioc.internal.MultipleConstructorsAutobuildService(StringHolder)"));

        train_getServiceId(resources, "StringHolder");
        train_getLogger(resources, logger);
View Full Code Here

        catch (Throwable ex)
        {
            throw new TransformationException(transformation, ex);
        }

        if (logger.isDebugEnabled()) logger.debug("Finished class transformation: " + transformation);

        nameToClassTransformation.put(classname, transformation);
        nameToComponentModel.put(classname, model);
    }
View Full Code Here

        final Object job = data.get(QuartzScheduler.DATA_MAP_OBJECT);
        final Logger logger = (Logger)data.get(QuartzScheduler.DATA_MAP_LOGGER);

        try {
            logger.debug("Executing job {} with name {}", job, data.get(QuartzScheduler.DATA_MAP_NAME));
            if (job instanceof org.apache.sling.commons.scheduler.Job) {
                @SuppressWarnings("unchecked")
                final Map<String, Serializable> configuration = (Map<String, Serializable>) data.get(QuartzScheduler.DATA_MAP_CONFIGURATION);
                final String name = (String) data.get(QuartzScheduler.DATA_MAP_NAME);
View Full Code Here

        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);
        Assert.assertNotNull("LogService not null", sref);
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.