Package com.mysql.cj.log
Interface Log
- All Known Implementing Classes:
Jdk14Logger,NullLogger,Slf4JLogger,StandardLogger
public interface Log
Unified interface to logging facilities on different platforms
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringLOGGER_INSTANCE_NAMELogger instance 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.
-
Field Details
-
LOGGER_INSTANCE_NAME
static final java.lang.String LOGGER_INSTANCE_NAMELogger instance name- See Also:
- Constant Field Values
-
-
Method Details
-
isDebugEnabled
boolean isDebugEnabled()Is the 'debug' log level enabled?- Returns:
- true if so.
-
isErrorEnabled
boolean isErrorEnabled()Is the 'error' log level enabled?- Returns:
- true if so.
-
isFatalEnabled
boolean isFatalEnabled()Is the 'fatal' log level enabled?- Returns:
- true if so.
-
isInfoEnabled
boolean isInfoEnabled()Is the 'info' log level enabled?- Returns:
- true if so.
-
isTraceEnabled
boolean isTraceEnabled()Is the 'trace' log level enabled?- Returns:
- true if so.
-
isWarnEnabled
boolean isWarnEnabled()Is the 'warn' log level enabled?- Returns:
- true if so.
-
logDebug
void logDebug(java.lang.Object msg)Logs the given message instance using the 'debug' level- Parameters:
msg- the message to log
-
logDebug
void logDebug(java.lang.Object msg, java.lang.Throwable thrown)Logs the given message and Throwable at the 'debug' level.- Parameters:
msg- the message to logthrown- the throwable to log (may be null)
-
logError
void logError(java.lang.Object msg)Logs the given message instance using the 'error' level- Parameters:
msg- the message to log
-
logError
void logError(java.lang.Object msg, java.lang.Throwable thrown)Logs the given message and Throwable at the 'error' level.- Parameters:
msg- the message to logthrown- the throwable to log (may be null)
-
logFatal
void logFatal(java.lang.Object msg)Logs the given message instance using the 'fatal' level- Parameters:
msg- the message to log
-
logFatal
void logFatal(java.lang.Object msg, java.lang.Throwable thrown)Logs the given message and Throwable at the 'fatal' level.- Parameters:
msg- the message to logthrown- the throwable to log (may be null)
-
logInfo
void logInfo(java.lang.Object msg)Logs the given message instance using the 'info' level- Parameters:
msg- the message to log
-
logInfo
void logInfo(java.lang.Object msg, java.lang.Throwable thrown)Logs the given message and Throwable at the 'info' level.- Parameters:
msg- the message to logthrown- the throwable to log (may be null)
-
logTrace
void logTrace(java.lang.Object msg)Logs the given message instance using the 'trace' level- Parameters:
msg- the message to log
-
logTrace
void logTrace(java.lang.Object msg, java.lang.Throwable thrown)Logs the given message and Throwable at the 'trace' level.- Parameters:
msg- the message to logthrown- the throwable to log (may be null)
-
logWarn
void logWarn(java.lang.Object msg)Logs the given message instance using the 'warn' level- Parameters:
msg- the message to log
-
logWarn
void logWarn(java.lang.Object msg, java.lang.Throwable thrown)Logs the given message and Throwable at the 'warn' level.- Parameters:
msg- the message to logthrown- the throwable to log (may be null)
-