public interface SFLogger
Five levels are included in this interface, from high to low: ERROR WARN INFO DEBUG TRACE
Created by hyu on 11/17/16.
| Modifier and Type | Method and Description |
|---|---|
void |
debug(String msg,
boolean isMasked) |
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,
boolean isMasked) |
void |
error(String msg,
Object... arguments)
Logs message at ERROR level.
|
void |
error(String msg,
Throwable t) |
void |
info(String msg,
boolean isMasked) |
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?
|
void |
trace(String msg,
boolean isMasked) |
void |
trace(String msg,
Object... arguments)
Logs message at TRACE level.
|
void |
trace(String msg,
Throwable t) |
void |
warn(String msg,
boolean isMasked) |
void |
warn(String msg,
Object... arguments)
Logs message at WARN level.
|
void |
warn(String msg,
Throwable t) |
boolean isDebugEnabled()
boolean isErrorEnabled()
boolean isInfoEnabled()
boolean isTraceEnabled()
boolean isWarnEnabled()
void debug(String msg, boolean isMasked)
void debugNoMask(String msg)
void debug(String msg, Object... arguments)
msg - 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());void error(String msg, boolean isMasked)
void error(String msg, Object... arguments)
msg - 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());void info(String msg, boolean isMasked)
void info(String msg, Object... arguments)
msg - 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());void trace(String msg, boolean isMasked)
void trace(String msg, Object... arguments)
msg - 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());void warn(String msg, boolean isMasked)
void warn(String msg, Object... arguments)
msg - 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());Copyright © 2022. All rights reserved.