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 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)
-
-
-
Method Detail
-
isDebugEnabled
public boolean isDebugEnabled()
Description copied from interface:SFLogger
Is debug level enabled?- Specified by:
isDebugEnabled
in interfaceSFLogger
- Returns:
- true if the trace level is DEBUG
-
isErrorEnabled
public boolean isErrorEnabled()
Description copied from interface:SFLogger
Is error level enabled?- Specified by:
isErrorEnabled
in interfaceSFLogger
- Returns:
- true if the trace level is ERROR
-
isInfoEnabled
public boolean isInfoEnabled()
Description copied from interface:SFLogger
Is info level enabled?- Specified by:
isInfoEnabled
in interfaceSFLogger
- Returns:
- true if the trace level is INFO
-
isTraceEnabled
public boolean isTraceEnabled()
Description copied from interface:SFLogger
Is trace level enabled?- Specified by:
isTraceEnabled
in interfaceSFLogger
- Returns:
- true if the trace level is TRACE
-
isWarnEnabled
public boolean isWarnEnabled()
Description copied from interface:SFLogger
Is warn level enabled?- Specified by:
isWarnEnabled
in interfaceSFLogger
- Returns:
- true if the trace level is WARN
-
debugNoMask
public void debugNoMask(String msg)
- Specified by:
debugNoMask
in interfaceSFLogger
-
debug
public void debug(String msg, Object... arguments)
Description copied from interface:SFLogger
Logs message at DEBUG level.- Specified by:
debug
in 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 implementingArgSupplier
so 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:SFLogger
Logs message at ERROR level.- Specified by:
error
in 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 implementingArgSupplier
so 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:SFLogger
Logs message at INFO level.- Specified by:
info
in 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 implementingArgSupplier
so 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:SFLogger
Logs message at TRACE level.- Specified by:
trace
in 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 implementingArgSupplier
so 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:SFLogger
Logs message at WARN level.- Specified by:
warn
in 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 implementingArgSupplier
so that they are run only if the message is going to be logged. E.g.,Logger.warn("Value: {}", (ArgSupplier) () -> expensiveOperation());
-
-