Class LogConsumerConfiguration
java.lang.Object
org.springframework.cloud.fn.consumer.log.LogConsumerConfiguration
@Configuration(proxyBeanMethods=false)
@EnableConfigurationProperties(LogConsumerProperties.class)
public class LogConsumerConfiguration
extends Object
The Configuration class for
Consumer
which logs incoming data.
For the logging logic a Spring Integration LoggingHandler
is used.
If incoming payload is a byte[]
and incoming message contentType
header is text-compatible
(e.g. application/json
), it is converted into a String
.
Otherwise the payload is passed to logger as is.- Author:
- Artem Bilan
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
LogConsumerConfiguration
public LogConsumerConfiguration()
-