public interface LogSpi
Modifier and Type | Method and Description |
---|---|
boolean |
isLoggable(Class<?> clazz,
Log.Level level)
Determines if the it should be logged based on Class and Level.
|
void |
log(Class<?> clazz,
StackTraceElement caller,
Log.Level level,
String message,
Throwable ex)
Log given the class, level, message, and exception.
|
void |
log(Class<?> clazz,
String method,
Log.Level level,
String message,
Throwable ex)
Log given the class, level, message, and exception.
|
boolean |
needToInferCaller(Class<?> clazz,
Log.Level level)
Determines if
Log need to infer caller based on Class and Level. |
void log(Class<?> clazz, String method, Log.Level level, String message, Throwable ex)
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.void log(Class<?> clazz, StackTraceElement caller, Log.Level level, String message, Throwable ex)
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.boolean isLoggable(Class<?> clazz, Log.Level level)
Copyright © 2022. All rights reserved.