程序包 com.mysql.cj.log

类 NullLogger

  • 所有已实现的接口:
    Log

    public class NullLogger
    extends Object
    implements Log
    A logger that does nothing. Used before the log is configured via the URL or properties.
    • 构造器详细资料

      • NullLogger

        public NullLogger​(String instanceName)
        Creates a new NullLogger with the given name
        参数:
        instanceName - (ignored)
    • 方法详细资料

      • isDebugEnabled

        public boolean isDebugEnabled()
        从接口复制的说明: Log
        Is the 'debug' log level enabled?
        指定者:
        isDebugEnabled 在接口中 Log
        返回:
        true if so.
      • isErrorEnabled

        public boolean isErrorEnabled()
        从接口复制的说明: Log
        Is the 'error' log level enabled?
        指定者:
        isErrorEnabled 在接口中 Log
        返回:
        true if so.
      • isFatalEnabled

        public boolean isFatalEnabled()
        从接口复制的说明: Log
        Is the 'fatal' log level enabled?
        指定者:
        isFatalEnabled 在接口中 Log
        返回:
        true if so.
      • isInfoEnabled

        public boolean isInfoEnabled()
        从接口复制的说明: Log
        Is the 'info' log level enabled?
        指定者:
        isInfoEnabled 在接口中 Log
        返回:
        true if so.
      • isTraceEnabled

        public boolean isTraceEnabled()
        从接口复制的说明: Log
        Is the 'trace' log level enabled?
        指定者:
        isTraceEnabled 在接口中 Log
        返回:
        true if so.
      • isWarnEnabled

        public boolean isWarnEnabled()
        从接口复制的说明: Log
        Is the 'warn' log level enabled?
        指定者:
        isWarnEnabled 在接口中 Log
        返回:
        true if so.
      • logDebug

        public void logDebug​(Object msg)
        从接口复制的说明: Log
        Logs the given message instance using the 'debug' level
        指定者:
        logDebug 在接口中 Log
        参数:
        msg - the message to log
      • logDebug

        public void logDebug​(Object msg,
                             Throwable thrown)
        从接口复制的说明: Log
        Logs the given message and Throwable at the 'debug' level.
        指定者:
        logDebug 在接口中 Log
        参数:
        msg - the message to log
        thrown - the throwable to log (may be null)
      • logError

        public void logError​(Object msg)
        从接口复制的说明: Log
        Logs the given message instance using the 'error' level
        指定者:
        logError 在接口中 Log
        参数:
        msg - the message to log
      • logError

        public void logError​(Object msg,
                             Throwable thrown)
        从接口复制的说明: Log
        Logs the given message and Throwable at the 'error' level.
        指定者:
        logError 在接口中 Log
        参数:
        msg - the message to log
        thrown - the throwable to log (may be null)
      • logFatal

        public void logFatal​(Object msg)
        从接口复制的说明: Log
        Logs the given message instance using the 'fatal' level
        指定者:
        logFatal 在接口中 Log
        参数:
        msg - the message to log
      • logFatal

        public void logFatal​(Object msg,
                             Throwable thrown)
        从接口复制的说明: Log
        Logs the given message and Throwable at the 'fatal' level.
        指定者:
        logFatal 在接口中 Log
        参数:
        msg - the message to log
        thrown - the throwable to log (may be null)
      • logInfo

        public void logInfo​(Object msg)
        从接口复制的说明: Log
        Logs the given message instance using the 'info' level
        指定者:
        logInfo 在接口中 Log
        参数:
        msg - the message to log
      • logInfo

        public void logInfo​(Object msg,
                            Throwable thrown)
        从接口复制的说明: Log
        Logs the given message and Throwable at the 'info' level.
        指定者:
        logInfo 在接口中 Log
        参数:
        msg - the message to log
        thrown - the throwable to log (may be null)
      • logTrace

        public void logTrace​(Object msg)
        从接口复制的说明: Log
        Logs the given message instance using the 'trace' level
        指定者:
        logTrace 在接口中 Log
        参数:
        msg - the message to log
      • logTrace

        public void logTrace​(Object msg,
                             Throwable thrown)
        从接口复制的说明: Log
        Logs the given message and Throwable at the 'trace' level.
        指定者:
        logTrace 在接口中 Log
        参数:
        msg - the message to log
        thrown - the throwable to log (may be null)
      • logWarn

        public void logWarn​(Object msg)
        从接口复制的说明: Log
        Logs the given message instance using the 'warn' level
        指定者:
        logWarn 在接口中 Log
        参数:
        msg - the message to log
      • logWarn

        public void logWarn​(Object msg,
                            Throwable thrown)
        从接口复制的说明: Log
        Logs the given message and Throwable at the 'warn' level.
        指定者:
        logWarn 在接口中 Log
        参数:
        msg - the message to log
        thrown - the throwable to log (may be null)