Package net.snowflake.client.log
Class SLF4JLogger
- java.lang.Object
-
- net.snowflake.client.log.SLF4JLogger
-
-
Constructor Summary
Constructors Constructor Description SLF4JLogger(Class<?> clazz)SLF4JLogger(String name)
-
Method Summary
All Methods Instance Methods Concrete 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
public boolean isDebugEnabled()
Description copied from interface:SFLoggerIs debug level enabled?- Specified by:
isDebugEnabledin interfaceSFLogger- Returns:
- true if the trace level is DEBUG
-
isErrorEnabled
public boolean isErrorEnabled()
Description copied from interface:SFLoggerIs error level enabled?- Specified by:
isErrorEnabledin interfaceSFLogger- Returns:
- true if the trace level is ERROR
-
isInfoEnabled
public boolean isInfoEnabled()
Description copied from interface:SFLoggerIs info level enabled?- Specified by:
isInfoEnabledin interfaceSFLogger- Returns:
- true if the trace level is INFO
-
isTraceEnabled
public boolean isTraceEnabled()
Description copied from interface:SFLoggerIs trace level enabled?- Specified by:
isTraceEnabledin interfaceSFLogger- Returns:
- true if the trace level is TRACE
-
isWarnEnabled
public boolean isWarnEnabled()
Description copied from interface:SFLoggerIs warn level enabled?- Specified by:
isWarnEnabledin interfaceSFLogger- Returns:
- true if the trace level is WARN
-
debugNoMask
public void debugNoMask(String msg)
- Specified by:
debugNoMaskin interfaceSFLogger
-
debug
public void debug(String msg, Object... arguments)
Description copied from interface:SFLoggerLogs message at DEBUG level.- Specified by:
debugin interfaceSFLogger- 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
public void error(String msg, Object... arguments)
Description copied from interface:SFLoggerLogs message at ERROR level.- Specified by:
errorin interfaceSFLogger- 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
public void info(String msg, Object... arguments)
Description copied from interface:SFLoggerLogs message at INFO level.- Specified by:
infoin interfaceSFLogger- 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
public void trace(String msg, Object... arguments)
Description copied from interface:SFLoggerLogs message at TRACE level.- Specified by:
tracein interfaceSFLogger- 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
public void warn(String msg, Object... arguments)
Description copied from interface:SFLoggerLogs message at WARN level.- Specified by:
warnin interfaceSFLogger- 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());
-
-