Package org.htmlunit

# Interface WebConsole.Logger

Enclosing class:
  `WebConsole`

public static interface WebConsole.Logger
A simple logging interface abstracting logging APIs.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `debug(Object message)`
  Logs a message with debug log level.
  `void`
  `error(Object message)`
  Logs a message with error log level.
  `void`
  `info(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(Object message)`
  Logs a message with trace log level.
  `void`
  `warn(Object message)`
  Logs a message with warn log level.

- ## Method Details

  - ### 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(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(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(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(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(Object message)
    Logs a message with error log level.
    Parameters:
      `message` - log this message