Interface IDebug

  • All Known Implementing Classes:
    ISDebug

    public interface IDebug
    A DebugInterface class is necessary because different clients have a requirement to direct their debug outputs to different destinations. DSAME write to debug files.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ERROR
      Integer constant represent ERROR log level.
      static int MESSAGE
      Integer constant represent MESSAGE log level.
      static int WARNING
      Integer constant represent WARNING log level.
    • Field Detail

      • MESSAGE

        static final int MESSAGE
        Integer constant represent MESSAGE log level.
        See Also:
        Constant Field Values
      • WARNING

        static final int WARNING
        Integer constant represent WARNING log level.
        See Also:
        Constant Field Values
      • ERROR

        static final int ERROR
        Integer constant represent ERROR log level.
        See Also:
        Constant Field Values
    • Method Detail

      • debug

        void debug​(int level,
                   String msg,
                   Throwable e)
        The method which performs the actual debug operation.
        Parameters:
        level - The level of the debug message.
        msg - The message string, which should be i18n-ed here.
        e - The exception whose stacktrace is required.
      • debug

        void debug​(int level,
                   String msg)
        The method which performs the actual debug operation.
        Parameters:
        level - The level of the debug message.
        msg - The message string, which should be i18n-ed here.
      • messageEnabled

        boolean messageEnabled()
        Check whether debug message level is set
        Returns:
        true if debug level is set to "message".
      • warningEnabled

        boolean warningEnabled()
        Check whether debug warning level is set
        Returns:
        true if debug level is set to "warning".