Constructor and Description |
---|
JDKLogger() |
Modifier and Type | Method and Description |
---|---|
boolean |
isLoggable(Class<?> clazz,
Log.Level level)
Use the internal JDK logger to determine if the level is worthy of logging.
|
void |
log(Class<?> clazz,
StackTraceElement caller,
Log.Level level,
String message,
Throwable ex)
Uses the JDK logger to log the message.
|
void |
log(Class<?> clazz,
String methodName,
Log.Level level,
String message,
Throwable ex)
Uses the JDK logger to log the message.
|
boolean |
needToInferCaller(Class<?> clazz,
Log.Level level)
Determines if
Log need to infer caller based on Class and Level. |
public void log(Class<?> clazz, String methodName, Log.Level level, String message, Throwable ex)
public void log(Class<?> clazz, StackTraceElement caller, Log.Level level, String message, Throwable ex)
public boolean isLoggable(Class<?> clazz, Log.Level level)
isLoggable
in interface LogSpi
Copyright © 2022. All rights reserved.