Interface LogSpi
- All Known Implementing Classes:
SanitizedLogger
public interface LogSpi
Logging 'Service Provider Interface'.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isLoggable
(Class<?> clazz, Log.Level level) Determines if the it should be logged based on Class and Level.void
Log given the class, level, message, and exception.void
Log given the class, level, message, and exception.boolean
needToInferCaller
(Class<?> clazz, Log.Level level) Determines ifLog
need 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 ifLog
need to infer caller based on Class and Level.
-