Package org.apache.camel.processor

Examples of org.apache.camel.processor.Logger


    // Builder methods
    // -------------------------------------------------------------------------

    protected Logger createLogger() {
        return new Logger(LogFactory.getLog(TransactionErrorHandler.class), LoggingLevel.ERROR);
    }
View Full Code Here


*/
public class LoggingExceptionHandler implements ExceptionHandler {
    private final Logger logger;

    public LoggingExceptionHandler(Class<?> ownerType) {
        this(new Logger(LogFactory.getLog(ownerType), LoggingLevel.ERROR));
    }
View Full Code Here

        String name = getLogName();
        if (name == null) {
            name = routeContext.getRoute().getId();
        }
        Logger logger = new Logger(name, getLoggingLevel());

        return new LogProcessor(exp, logger);
    }
View Full Code Here

     * @param formatter the exchange formatter
     * @return the logger to use
     */
    public synchronized Logger getLogger(ExchangeFormatter formatter) {
        if (logger == null) {
            logger = new Logger(LogFactory.getLog(getLogName()), formatter);
            logger.setLevel(getLogLevel());
        }
        return logger;
    }
View Full Code Here

        policy.setRedeliveryDelay(0);
        return policy;
    }

    protected Logger createLogger() {
        return new Logger(LogFactory.getLog(DefaultErrorHandler.class), LoggingLevel.ERROR);
    }
View Full Code Here

    public NettyProducer(NettyEndpoint nettyEndpoint, NettyConfiguration configuration) {
        super(nettyEndpoint);
        this.configuration = configuration;
        this.context = this.getEndpoint().getCamelContext();
        this.allChannels = new DefaultChannelGroup("NettyProducer-" + nettyEndpoint.getEndpointUri());
        this.noReplyLogger = new Logger(LOG, configuration.getNoReplyLogLevel());
    }
View Full Code Here

        policy.setRedeliverDelay(0);
        return policy;
    }

    protected Logger createLogger() {
        return new Logger(LogFactory.getLog(DefaultErrorHandler.class), LoggingLevel.ERROR);
    }
View Full Code Here

    public void setLoggingLevel(LoggingLevel loggingLevel) {
        this.loggingLevel = loggingLevel;
    }

    protected Logger createLogger() {
        return new Logger(LogFactory.getLog(ThrottlingInflightRoutePolicy.class), getLoggingLevel());
    }
View Full Code Here

*/
public class LoggingExceptionHandler implements ExceptionHandler {
    private final Logger logger;

    public LoggingExceptionHandler(Class<?> ownerType) {
        this(new Logger(LogFactory.getLog(ownerType), LoggingLevel.ERROR));
    }
View Full Code Here

     * @param formatter the exchange formatter
     * @return the logger to use
     */
    public synchronized Logger getLogger(ExchangeFormatter formatter) {
        if (logger == null) {
            logger = new Logger(LogFactory.getLog(getLogName()), formatter);
            logger.setLevel(getLogLevel());
        }
        return logger;
    }
View Full Code Here

TOP

Related Classes of org.apache.camel.processor.Logger

Copyright © 2018 www.massapicom. 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.