Class KafkaExceptionLogLevelAware
java.lang.Object
org.springframework.kafka.listener.KafkaExceptionLogLevelAware
- Direct Known Subclasses:
CommonContainerStoppingErrorHandler
,ExceptionClassifier
A top level abstract class for classes that can be configured with a
KafkaException.Level
.- Since:
- 2.5
- Author:
- Gary Russell
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected KafkaException.Level
Set the level at which the exception thrown by this handler is logged.void
setLogLevel
(KafkaException.Level logLevel) Set the level at which the exception thrown by this handler is logged.
-
Constructor Details
-
KafkaExceptionLogLevelAware
public KafkaExceptionLogLevelAware()
-
-
Method Details
-
setLogLevel
Set the level at which the exception thrown by this handler is logged.- Parameters:
logLevel
- the level (default ERROR).
-
getLogLevel
Set the level at which the exception thrown by this handler is logged.- Returns:
- the level.
-