Package net.snowflake.client.log
Interface SFLogger
-
- All Known Implementing Classes:
JDK14Logger,SLF4JLogger
public interface SFLoggerInterface used by JDBC driver to log informationFive levels are included in this interface, from high to low: ERROR WARN INFO DEBUG TRACE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddebug(String msg, boolean isMasked)voiddebug(String msg, Object... arguments)Logs message at DEBUG level.voiddebug(String msg, Throwable t)voiddebugNoMask(String msg)voiderror(String msg, boolean isMasked)voiderror(String msg, Object... arguments)Logs message at ERROR level.voiderror(String msg, Throwable t)voidinfo(String msg, boolean isMasked)voidinfo(String msg, Object... arguments)Logs message at INFO level.voidinfo(String msg, Throwable t)booleanisDebugEnabled()Is debug level enabled?booleanisErrorEnabled()Is error level enabled?booleanisInfoEnabled()Is info level enabled?booleanisTraceEnabled()Is trace level enabled?booleanisWarnEnabled()Is warn level enabled?voidtrace(String msg, boolean isMasked)voidtrace(String msg, Object... arguments)Logs message at TRACE level.voidtrace(String msg, Throwable t)voidwarn(String msg, boolean isMasked)voidwarn(String msg, Object... arguments)Logs message at WARN level.voidwarn(String msg, Throwable t)
-
-
-
Method Detail
-
isDebugEnabled
boolean isDebugEnabled()
Is debug level enabled?- Returns:
- true if the trace level is DEBUG
-
isErrorEnabled
boolean isErrorEnabled()
Is error level enabled?- Returns:
- true if the trace level is ERROR
-
isInfoEnabled
boolean isInfoEnabled()
Is info level enabled?- Returns:
- true if the trace level is INFO
-
isTraceEnabled
boolean isTraceEnabled()
Is trace level enabled?- Returns:
- true if the trace level is TRACE
-
isWarnEnabled
boolean isWarnEnabled()
Is warn level enabled?- Returns:
- true if the trace level is WARN
-
debug
void debug(String msg, boolean isMasked)
-
debugNoMask
void debugNoMask(String msg)
-
debug
void debug(String msg, Object... arguments)
Logs message at DEBUG level.- Parameters:
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 implementingArgSupplierso that they are run only if the message is going to be logged. E.g.,Logger.debug("Value: {}", (ArgSupplier) () -> expensiveOperation());
-
error
void error(String msg, boolean isMasked)
-
error
void error(String msg, Object... arguments)
Logs message at ERROR level.- Parameters:
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 implementingArgSupplierso that they are run only if the message is going to be logged. E.g.,Logger.warn("Value: {}", (ArgSupplier) () -> expensiveOperation());
-
info
void info(String msg, boolean isMasked)
-
info
void info(String msg, Object... arguments)
Logs message at INFO level.- Parameters:
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 implementingArgSupplierso that they are run only if the message is going to be logged. E.g.,Logger.info("Value: {}", (ArgSupplier) () -> expensiveOperation());
-
trace
void trace(String msg, boolean isMasked)
-
trace
void trace(String msg, Object... arguments)
Logs message at TRACE level.- Parameters:
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 implementingArgSupplierso that they are run only if the message is going to be logged. E.g.,Logger.trace("Value: {}", (ArgSupplier) () -> expensiveOperation());
-
warn
void warn(String msg, boolean isMasked)
-
warn
void warn(String msg, Object... arguments)
Logs message at WARN level.- Parameters:
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 implementingArgSupplierso that they are run only if the message is going to be logged. E.g.,Logger.warn("Value: {}", (ArgSupplier) () -> expensiveOperation());
-
-