程序包 com.mysql.cj.log
类 Jdk14Logger
- java.lang.Object
-
- com.mysql.cj.log.Jdk14Logger
-
-
字段概要
字段 修饰符和类型 字段 说明 protected LoggerjdkLoggerThe underlying logger from JDK-1.4-
从接口继承的字段 com.mysql.cj.log.Log
LOGGER_INSTANCE_NAME
-
-
构造器概要
构造器 构造器 说明 Jdk14Logger(String name)Creates a new Jdk14Logger object.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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 message)Logs the given message instance using the 'debug' levelvoidlogDebug(Object message, Throwable exception)Logs the given message and Throwable at the 'debug' level.voidlogError(Object message)Logs the given message instance using the 'error' levelvoidlogError(Object message, Throwable exception)Logs the given message and Throwable at the 'error' level.voidlogFatal(Object message)Logs the given message instance using the 'fatal' levelvoidlogFatal(Object message, Throwable exception)Logs the given message and Throwable at the 'fatal' level.voidlogInfo(Object message)Logs the given message instance using the 'info' levelvoidlogInfo(Object message, Throwable exception)Logs the given message and Throwable at the 'info' level.voidlogTrace(Object message)Logs the given message instance using the 'trace' levelvoidlogTrace(Object message, Throwable exception)Logs the given message and Throwable at the 'trace' level.voidlogWarn(Object message)Logs the given message instance using the 'warn' levelvoidlogWarn(Object message, Throwable exception)Logs the given message and Throwable at the 'warn' level.
-
-
-
字段详细资料
-
jdkLogger
protected Logger jdkLogger
The underlying logger from JDK-1.4
-
-
构造器详细资料
-
Jdk14Logger
public Jdk14Logger(String name)
Creates a new Jdk14Logger object.- 参数:
name- logger name as perLogger.getLogger(String)
-
-
方法详细资料
-
isDebugEnabled
public boolean isDebugEnabled()
从接口复制的说明:LogIs the 'debug' log level enabled?- 指定者:
isDebugEnabled在接口中Log- 返回:
- true if so.
-
isErrorEnabled
public boolean isErrorEnabled()
从接口复制的说明:LogIs the 'error' log level enabled?- 指定者:
isErrorEnabled在接口中Log- 返回:
- true if so.
-
isFatalEnabled
public boolean isFatalEnabled()
从接口复制的说明:LogIs the 'fatal' log level enabled?- 指定者:
isFatalEnabled在接口中Log- 返回:
- true if so.
-
isInfoEnabled
public boolean isInfoEnabled()
从接口复制的说明:LogIs the 'info' log level enabled?- 指定者:
isInfoEnabled在接口中Log- 返回:
- true if so.
-
isTraceEnabled
public boolean isTraceEnabled()
从接口复制的说明:LogIs the 'trace' log level enabled?- 指定者:
isTraceEnabled在接口中Log- 返回:
- true if so.
-
isWarnEnabled
public boolean isWarnEnabled()
从接口复制的说明:LogIs the 'warn' log level enabled?- 指定者:
isWarnEnabled在接口中Log- 返回:
- true if so.
-
logDebug
public void logDebug(Object message)
Logs the given message instance using the 'debug' level
-
logDebug
public void logDebug(Object message, Throwable exception)
Logs the given message and Throwable at the 'debug' level.
-
logError
public void logError(Object message)
Logs the given message instance using the 'error' level
-
logError
public void logError(Object message, Throwable exception)
Logs the given message and Throwable at the 'error' level.
-
logFatal
public void logFatal(Object message)
Logs the given message instance using the 'fatal' level
-
logFatal
public void logFatal(Object message, Throwable exception)
Logs the given message and Throwable at the 'fatal' level.
-
logInfo
public void logInfo(Object message)
Logs the given message instance using the 'info' level
-
logInfo
public void logInfo(Object message, Throwable exception)
Logs the given message and Throwable at the 'info' level.
-
logTrace
public void logTrace(Object message)
Logs the given message instance using the 'trace' level
-
logTrace
public void logTrace(Object message, Throwable exception)
Logs the given message and Throwable at the 'trace' level.
-
logWarn
public void logWarn(Object message)
Logs the given message instance using the 'warn' level
-
-