Interface LogSpi
- All Known Implementing Classes:
JDKLogger,NoOpLogger,SLF4JLog
public interface LogSpi
Logging 'Service Provider Interface'.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisLoggable(Class<?> clazz, Log.Level level) Determines if the it should be logged based on Class and Level.voidLog given the class, level, message, and exception.voidLog given the class, level, message, and exception.booleanneedToInferCaller(Class<?> clazz, Log.Level level) Determines ifLogneed to infer caller based on Class and Level.
-
Method Details
-
log
Log given the class, level, message, and exception.- Parameters:
clazz- Class that logging.level- the level at which to log.message- optional message to send to the log.ex- optional exception at logging point.
-
log
Log given the class, level, message, and exception.- Parameters:
clazz- Class that logging.level- the level at which to log.message- optional message to send to the log.ex- optional exception at logging point.
-
isLoggable
Determines if the it should be logged based on Class and Level. -
needToInferCaller
Determines ifLogneed to infer caller based on Class and Level.
-