| Constructor and Description |
|---|
JDK14Logger(String name) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addHandler(Handler handler) |
void |
debug(String msg) |
void |
debug(String msg,
Object... arguments)
Logs message at DEBUG level.
|
void |
debug(String msg,
Throwable t) |
void |
debugNoMask(String msg) |
void |
error(String msg) |
void |
error(String msg,
Object... arguments)
Logs message at ERROR level.
|
void |
error(String msg,
Throwable t) |
static Level |
getLevel() |
static void |
honorTracingParameter(Level level)
This is legacy way of enable logging in JDBC (through TRACING parameter) Only effective when
java.util.logging.config.file is not specified
|
void |
info(String msg) |
void |
info(String msg,
Object... arguments)
Logs message at INFO level.
|
void |
info(String msg,
Throwable t) |
boolean |
isDebugEnabled()
Is debug level enabled?
|
boolean |
isErrorEnabled()
Is error level enabled?
|
boolean |
isInfoEnabled()
Is info level enabled?
|
boolean |
isTraceEnabled()
Is trace level enabled?
|
boolean |
isWarnEnabled()
Is warn level enabled?
|
static void |
removeHandler(Handler handler) |
static void |
setLevel(Level level) |
static void |
setUseParentHandlers(boolean value) |
void |
trace(String msg) |
void |
trace(String msg,
Object... arguments)
Logs message at TRACE level.
|
void |
trace(String msg,
Throwable t) |
void |
warn(String msg) |
void |
warn(String msg,
Object... arguments)
Logs message at WARN level.
|
void |
warn(String msg,
Throwable t) |
public JDK14Logger(String name)
public boolean isDebugEnabled()
SFLoggerisDebugEnabled in interface SFLoggerpublic boolean isErrorEnabled()
SFLoggerisErrorEnabled in interface SFLoggerpublic boolean isInfoEnabled()
SFLoggerisInfoEnabled in interface SFLoggerpublic boolean isTraceEnabled()
SFLoggerisTraceEnabled in interface SFLoggerpublic boolean isWarnEnabled()
SFLoggerisWarnEnabled in interface SFLoggerpublic void debugNoMask(String msg)
debugNoMask in interface SFLoggerpublic void debug(String msg, Object... arguments)
SFLoggerdebug in interface SFLoggermsg - Message or message formatarguments - objects that supply value to placeholders in the message format. Expensive
operations that supply these values can be specified using lambdas implementing ArgSupplier so that they are run only if the message is going to be logged. E.g., Logger.debug("Value: {}", (ArgSupplier) () -> expensiveOperation());public void error(String msg, Object... arguments)
SFLoggererror in interface SFLoggermsg - Message or message formatarguments - objects that supply value to placeholders in the message format. Expensive
operations that supply these values can be specified using lambdas implementing ArgSupplier so that they are run only if the message is going to be logged. E.g., Logger.warn("Value: {}", (ArgSupplier) () -> expensiveOperation());public void info(String msg, Object... arguments)
SFLoggerinfo in interface SFLoggermsg - Message or message formatarguments - objects that supply value to placeholders in the message format. Expensive
operations that supply these values can be specified using lambdas implementing ArgSupplier so that they are run only if the message is going to be logged. E.g., Logger.info("Value: {}", (ArgSupplier) () -> expensiveOperation());public void trace(String msg, Object... arguments)
SFLoggertrace in interface SFLoggermsg - Message or message formatarguments - objects that supply value to placeholders in the message format. Expensive
operations that supply these values can be specified using lambdas implementing ArgSupplier so that they are run only if the message is going to be logged. E.g., Logger.trace("Value: {}", (ArgSupplier) () -> expensiveOperation());public void warn(String msg, Object... arguments)
SFLoggerwarn in interface SFLoggermsg - Message or message formatarguments - objects that supply value to placeholders in the message format. Expensive
operations that supply these values can be specified using lambdas implementing ArgSupplier so that they are run only if the message is going to be logged. E.g., Logger.warn("Value: {}", (ArgSupplier) () -> expensiveOperation());public static void addHandler(Handler handler)
public static void removeHandler(Handler handler)
public static void setUseParentHandlers(boolean value)
public static void setLevel(Level level)
public static Level getLevel()
public static void honorTracingParameter(Level level)
level - Copyright © 2022. All rights reserved.