Search in sources :

Example 11 with LoggingLevel

use of org.apache.camel.LoggingLevel in project camel by apache.

the class ManagedThrottlingInflightRoutePolicy method setLoggingLevel.

public void setLoggingLevel(String loggingLevel) {
    LoggingLevel level = LoggingLevel.valueOf(loggingLevel);
    getPolicy().setLoggingLevel(level);
    getPolicy().getLogger().setLevel(level);
}
Also used : LoggingLevel(org.apache.camel.LoggingLevel)

Example 12 with LoggingLevel

use of org.apache.camel.LoggingLevel in project camel by apache.

the class CamelLogger method log.

public void log(String message, LoggingLevel loggingLevel) {
    LoggingLevel oldLogLevel = getLevel();
    setLevel(loggingLevel);
    log(message);
    setLevel(oldLogLevel);
}
Also used : LoggingLevel(org.apache.camel.LoggingLevel)

Aggregations

LoggingLevel (org.apache.camel.LoggingLevel)12 CamelLogger (org.apache.camel.util.CamelLogger)3 Exchange (org.apache.camel.Exchange)2 DefaultExchange (org.apache.camel.impl.DefaultExchange)2 ExchangeFormatter (org.apache.camel.spi.ExchangeFormatter)2 Logger (org.slf4j.Logger)2 File (java.io.File)1 RejectedExecutionException (java.util.concurrent.RejectedExecutionException)1 Expression (org.apache.camel.Expression)1 Processor (org.apache.camel.Processor)1 GenericFileExclusiveReadLockStrategy (org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy)1 CamelLogProcessor (org.apache.camel.processor.CamelLogProcessor)1 DefaultExchangeFormatter (org.apache.camel.processor.DefaultExchangeFormatter)1 LogProcessor (org.apache.camel.processor.LogProcessor)1 ThroughputLogger (org.apache.camel.processor.ThroughputLogger)1 IdempotentRepository (org.apache.camel.spi.IdempotentRepository)1