Class WarnThenDebugLogger
java.lang.Object
io.micrometer.common.util.internal.logging.WarnThenDebugLogger
InternalLogger which logs at warn level at first and then logs at debug level
for the rest.- Since:
- 1.1.8
-
Constructor Summary
ConstructorsConstructorDescriptionWarnThenDebugLogger(Class<?> clazz) WarnThenDebugLogger(String name) Creates a newWarnThenDebugLoggerinstance with the specified name. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis may be useful to have different behavior before/after logging once.voidvoidvoidvoid
-
Constructor Details
-
WarnThenDebugLogger
-
WarnThenDebugLogger
Creates a newWarnThenDebugLoggerinstance with the specified name.- Parameters:
name- logger name- Since:
- 1.13.0
-
-
Method Details
-
isEnabled
public boolean isEnabled()This may be useful to have different behavior before/after logging once.- Returns:
- whether this logger is enabled or not
- Since:
- 1.16.0
-
log
-
log
-
log
-
log
-