程序包 com.mysql.cj.log
接口 Log
-
- 所有已知实现类:
Jdk14Logger,NullLogger,Slf4JLogger,StandardLogger
public interface LogUnified interface to logging facilities on different platforms
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringLOGGER_INSTANCE_NAMELogger instance name
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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(Object msg)Logs the given message instance using the 'debug' levelvoidlogDebug(Object msg, Throwable thrown)Logs the given message and Throwable at the 'debug' level.voidlogError(Object msg)Logs the given message instance using the 'error' levelvoidlogError(Object msg, Throwable thrown)Logs the given message and Throwable at the 'error' level.voidlogFatal(Object msg)Logs the given message instance using the 'fatal' levelvoidlogFatal(Object msg, Throwable thrown)Logs the given message and Throwable at the 'fatal' level.voidlogInfo(Object msg)Logs the given message instance using the 'info' levelvoidlogInfo(Object msg, Throwable thrown)Logs the given message and Throwable at the 'info' level.voidlogTrace(Object msg)Logs the given message instance using the 'trace' levelvoidlogTrace(Object msg, Throwable thrown)Logs the given message and Throwable at the 'trace' level.voidlogWarn(Object msg)Logs the given message instance using the 'warn' levelvoidlogWarn(Object msg, Throwable thrown)Logs the given message and Throwable at the 'warn' level.
-
-
-
方法详细资料
-
isDebugEnabled
boolean isDebugEnabled()
Is the 'debug' log level enabled?- 返回:
- true if so.
-
isErrorEnabled
boolean isErrorEnabled()
Is the 'error' log level enabled?- 返回:
- true if so.
-
isFatalEnabled
boolean isFatalEnabled()
Is the 'fatal' log level enabled?- 返回:
- true if so.
-
isInfoEnabled
boolean isInfoEnabled()
Is the 'info' log level enabled?- 返回:
- true if so.
-
isTraceEnabled
boolean isTraceEnabled()
Is the 'trace' log level enabled?- 返回:
- true if so.
-
isWarnEnabled
boolean isWarnEnabled()
Is the 'warn' log level enabled?- 返回:
- true if so.
-
logDebug
void logDebug(Object msg)
Logs the given message instance using the 'debug' level- 参数:
msg- the message to log
-
logDebug
void logDebug(Object msg, Throwable thrown)
Logs the given message and Throwable at the 'debug' level.- 参数:
msg- the message to logthrown- the throwable to log (may be null)
-
logError
void logError(Object msg)
Logs the given message instance using the 'error' level- 参数:
msg- the message to log
-
logError
void logError(Object msg, Throwable thrown)
Logs the given message and Throwable at the 'error' level.- 参数:
msg- the message to logthrown- the throwable to log (may be null)
-
logFatal
void logFatal(Object msg)
Logs the given message instance using the 'fatal' level- 参数:
msg- the message to log
-
logFatal
void logFatal(Object msg, Throwable thrown)
Logs the given message and Throwable at the 'fatal' level.- 参数:
msg- the message to logthrown- the throwable to log (may be null)
-
logInfo
void logInfo(Object msg)
Logs the given message instance using the 'info' level- 参数:
msg- the message to log
-
logInfo
void logInfo(Object msg, Throwable thrown)
Logs the given message and Throwable at the 'info' level.- 参数:
msg- the message to logthrown- the throwable to log (may be null)
-
logTrace
void logTrace(Object msg)
Logs the given message instance using the 'trace' level- 参数:
msg- the message to log
-
logTrace
void logTrace(Object msg, Throwable thrown)
Logs the given message and Throwable at the 'trace' level.- 参数:
msg- the message to logthrown- the throwable to log (may be null)
-
logWarn
void logWarn(Object msg)
Logs the given message instance using the 'warn' level- 参数:
msg- the message to log
-
-