Package org.htmlunit

Interface WebConsole.Logger

  • Enclosing class:
    WebConsole

    public static interface WebConsole.Logger
    A simple logging interface abstracting logging APIs.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void debug​(java.lang.Object message)
      Logs a message with debug log level.
      void error​(java.lang.Object message)
      Logs a message with error log level.
      void info​(java.lang.Object message)
      Logs a message with info log level.
      boolean isDebugEnabled()
      Is debug logging currently enabled?
      boolean isErrorEnabled()
      Is error logging currently enabled?
      boolean isInfoEnabled()
      Is info logging currently enabled?
      boolean isTraceEnabled()
      Is trace logging currently enabled?
      boolean isWarnEnabled()
      Is warn logging currently enabled?
      void trace​(java.lang.Object message)
      Logs a message with trace log level.
      void warn​(java.lang.Object message)
      Logs a message with warn log level.
    • Method Detail

      • isTraceEnabled

        boolean isTraceEnabled()
        Is trace logging currently enabled?

        Call this method to prevent having to perform expensive operations (for example, String concatenation) when the log level is more than trace.

        Returns:
        true if trace is enabled in the underlying logger.
      • trace

        void trace​(java.lang.Object message)
        Logs a message with trace log level.
        Parameters:
        message - log this message
      • isDebugEnabled

        boolean isDebugEnabled()
        Is debug logging currently enabled?

        Call this method to prevent having to perform expensive operations (for example, String concatenation) when the log level is more than debug.

        Returns:
        true if debug is enabled in the underlying logger.
      • debug

        void debug​(java.lang.Object message)
        Logs a message with debug log level.
        Parameters:
        message - log this message
      • isInfoEnabled

        boolean isInfoEnabled()
        Is info logging currently enabled?

        Call this method to prevent having to perform expensive operations (for example, String concatenation) when the log level is more than info.

        Returns:
        true if info is enabled in the underlying logger.
      • info

        void info​(java.lang.Object message)
        Logs a message with info log level.
        Parameters:
        message - log this message
      • isWarnEnabled

        boolean isWarnEnabled()
        Is warn logging currently enabled?

        Call this method to prevent having to perform expensive operations (for example, String concatenation) when the log level is more than warn.

        Returns:
        true if warn is enabled in the underlying logger.
      • warn

        void warn​(java.lang.Object message)
        Logs a message with warn log level.
        Parameters:
        message - log this message
      • isErrorEnabled

        boolean isErrorEnabled()
        Is error logging currently enabled?

        Call this method to prevent having to perform expensive operations (for example, String concatenation) when the log level is more than error.

        Returns:
        true if error is enabled in the underlying logger.
      • error

        void error​(java.lang.Object message)
        Logs a message with error log level.
        Parameters:
        message - log this message