程序包 com.mysql.cj.log

接口 Log

    • 字段详细资料

      • LOGGER_INSTANCE_NAME

        static final String LOGGER_INSTANCE_NAME
        Logger instance name
        另请参阅:
        常量字段值
    • 方法详细资料

      • 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 log
        thrown - 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 log
        thrown - 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 log
        thrown - 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 log
        thrown - 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 log
        thrown - 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
      • logWarn

        void logWarn​(Object msg,
                     Throwable thrown)
        Logs the given message and Throwable at the 'warn' level.
        参数:
        msg - the message to log
        thrown - the throwable to log (may be null)