Package com.mysql.cj.log
Class Slf4JLogger
java.lang.Object
com.mysql.cj.log.Slf4JLogger
- All Implemented Interfaces:
Log
public class Slf4JLogger extends java.lang.Object implements Log
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Slf4JLogger(java.lang.String name) -
Method Summary
Modifier and Type Method Description booleanisDebugEnabled()Is the 'debug' log level enabled?booleanisErrorEnabled()Is the 'error' log level enabled?booleanisFatalEnabled()Is the 'fatal' log level enabled?booleanisInfoEnabled()Is the 'info' log level enabled?booleanisTraceEnabled()Is the 'trace' log level enabled?booleanisWarnEnabled()Is the 'warn' log level enabled?voidlogDebug(java.lang.Object msg)Logs the given message instance using the 'debug' levelvoidlogDebug(java.lang.Object msg, java.lang.Throwable thrown)Logs the given message and Throwable at the 'debug' level.voidlogError(java.lang.Object msg)Logs the given message instance using the 'error' levelvoidlogError(java.lang.Object msg, java.lang.Throwable thrown)Logs the given message and Throwable at the 'error' level.voidlogFatal(java.lang.Object msg)Logs the given message instance using the 'fatal' levelvoidlogFatal(java.lang.Object msg, java.lang.Throwable thrown)Logs the given message and Throwable at the 'fatal' level.voidlogInfo(java.lang.Object msg)Logs the given message instance using the 'info' levelvoidlogInfo(java.lang.Object msg, java.lang.Throwable thrown)Logs the given message and Throwable at the 'info' level.voidlogTrace(java.lang.Object msg)Logs the given message instance using the 'trace' levelvoidlogTrace(java.lang.Object msg, java.lang.Throwable thrown)Logs the given message and Throwable at the 'trace' level.voidlogWarn(java.lang.Object msg)Logs the given message instance using the 'warn' levelvoidlogWarn(java.lang.Object msg, java.lang.Throwable thrown)Logs the given message and Throwable at the 'warn' level.
-
Constructor Details
-
Slf4JLogger
public Slf4JLogger(java.lang.String name)
-
-
Method Details
-
isDebugEnabled
public boolean isDebugEnabled()Description copied from interface:LogIs the 'debug' log level enabled?- Specified by:
isDebugEnabledin interfaceLog- Returns:
- true if so.
-
isErrorEnabled
public boolean isErrorEnabled()Description copied from interface:LogIs the 'error' log level enabled?- Specified by:
isErrorEnabledin interfaceLog- Returns:
- true if so.
-
isFatalEnabled
public boolean isFatalEnabled()Description copied from interface:LogIs the 'fatal' log level enabled?- Specified by:
isFatalEnabledin interfaceLog- Returns:
- true if so.
-
isInfoEnabled
public boolean isInfoEnabled()Description copied from interface:LogIs the 'info' log level enabled?- Specified by:
isInfoEnabledin interfaceLog- Returns:
- true if so.
-
isTraceEnabled
public boolean isTraceEnabled()Description copied from interface:LogIs the 'trace' log level enabled?- Specified by:
isTraceEnabledin interfaceLog- Returns:
- true if so.
-
isWarnEnabled
public boolean isWarnEnabled()Description copied from interface:LogIs the 'warn' log level enabled?- Specified by:
isWarnEnabledin interfaceLog- Returns:
- true if so.
-
logDebug
public void logDebug(java.lang.Object msg)Description copied from interface:LogLogs the given message instance using the 'debug' level -
logDebug
public void logDebug(java.lang.Object msg, java.lang.Throwable thrown)Description copied from interface:LogLogs the given message and Throwable at the 'debug' level. -
logError
public void logError(java.lang.Object msg)Description copied from interface:LogLogs the given message instance using the 'error' level -
logError
public void logError(java.lang.Object msg, java.lang.Throwable thrown)Description copied from interface:LogLogs the given message and Throwable at the 'error' level. -
logFatal
public void logFatal(java.lang.Object msg)Description copied from interface:LogLogs the given message instance using the 'fatal' level -
logFatal
public void logFatal(java.lang.Object msg, java.lang.Throwable thrown)Description copied from interface:LogLogs the given message and Throwable at the 'fatal' level. -
logInfo
public void logInfo(java.lang.Object msg)Description copied from interface:LogLogs the given message instance using the 'info' level -
logInfo
public void logInfo(java.lang.Object msg, java.lang.Throwable thrown)Description copied from interface:LogLogs the given message and Throwable at the 'info' level. -
logTrace
public void logTrace(java.lang.Object msg)Description copied from interface:LogLogs the given message instance using the 'trace' level -
logTrace
public void logTrace(java.lang.Object msg, java.lang.Throwable thrown)Description copied from interface:LogLogs the given message and Throwable at the 'trace' level. -
logWarn
public void logWarn(java.lang.Object msg)Description copied from interface:LogLogs the given message instance using the 'warn' level -
logWarn
public void logWarn(java.lang.Object msg, java.lang.Throwable thrown)Description copied from interface:LogLogs the given message and Throwable at the 'warn' level.
-