Package net.snowflake.client.log
Class CommonsLoggingWrapper
- java.lang.Object
-
- net.snowflake.client.log.CommonsLoggingWrapper
-
- All Implemented Interfaces:
org.apache.commons.logging.Log
@SnowflakeJdbcInternalApi public class CommonsLoggingWrapper extends Object implements org.apache.commons.logging.Log
This is a wrapper class of apache commons logging which uses SFLogger to use driver configuration (via java.util.logging or SLF4J) and mask secrets. Wrapper does not hide trace and debug messages.
-
-
Constructor Summary
Constructors Constructor Description CommonsLoggingWrapper(String className)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug(Object msg)
void
debug(Object msg, Throwable t)
void
error(Object msg)
void
error(Object msg, Throwable t)
void
fatal(Object msg)
void
fatal(Object msg, Throwable t)
void
info(Object msg)
void
info(Object msg, Throwable t)
boolean
isDebugEnabled()
boolean
isErrorEnabled()
boolean
isFatalEnabled()
boolean
isInfoEnabled()
boolean
isTraceEnabled()
boolean
isWarnEnabled()
void
trace(Object msg)
void
trace(Object msg, Throwable t)
void
warn(Object msg)
void
warn(Object msg, Throwable t)
-
-
-
Constructor Detail
-
CommonsLoggingWrapper
public CommonsLoggingWrapper(String className)
-
-
Method Detail
-
debug
public void debug(Object msg)
- Specified by:
debug
in interfaceorg.apache.commons.logging.Log
-
debug
public void debug(Object msg, Throwable t)
- Specified by:
debug
in interfaceorg.apache.commons.logging.Log
-
error
public void error(Object msg)
- Specified by:
error
in interfaceorg.apache.commons.logging.Log
-
error
public void error(Object msg, Throwable t)
- Specified by:
error
in interfaceorg.apache.commons.logging.Log
-
fatal
public void fatal(Object msg)
- Specified by:
fatal
in interfaceorg.apache.commons.logging.Log
-
fatal
public void fatal(Object msg, Throwable t)
- Specified by:
fatal
in interfaceorg.apache.commons.logging.Log
-
info
public void info(Object msg)
- Specified by:
info
in interfaceorg.apache.commons.logging.Log
-
info
public void info(Object msg, Throwable t)
- Specified by:
info
in interfaceorg.apache.commons.logging.Log
-
isDebugEnabled
public boolean isDebugEnabled()
- Specified by:
isDebugEnabled
in interfaceorg.apache.commons.logging.Log
-
isErrorEnabled
public boolean isErrorEnabled()
- Specified by:
isErrorEnabled
in interfaceorg.apache.commons.logging.Log
-
isFatalEnabled
public boolean isFatalEnabled()
- Specified by:
isFatalEnabled
in interfaceorg.apache.commons.logging.Log
-
isInfoEnabled
public boolean isInfoEnabled()
- Specified by:
isInfoEnabled
in interfaceorg.apache.commons.logging.Log
-
isTraceEnabled
public boolean isTraceEnabled()
- Specified by:
isTraceEnabled
in interfaceorg.apache.commons.logging.Log
-
isWarnEnabled
public boolean isWarnEnabled()
- Specified by:
isWarnEnabled
in interfaceorg.apache.commons.logging.Log
-
trace
public void trace(Object msg)
- Specified by:
trace
in interfaceorg.apache.commons.logging.Log
-
trace
public void trace(Object msg, Throwable t)
- Specified by:
trace
in interfaceorg.apache.commons.logging.Log
-
warn
public void warn(Object msg)
- Specified by:
warn
in interfaceorg.apache.commons.logging.Log
-
-