Package org.htmlunit

Class WebConsole.DefaultLogger

java.lang.Object
org.htmlunit.WebConsole.DefaultLogger
All Implemented Interfaces:
Serializable, WebConsole.Logger
Enclosing class:
WebConsole

private static class WebConsole.DefaultLogger extends Object implements WebConsole.Logger, Serializable
This class is the default logger used by WebConsole.
  • Field Details

    • LOG

      private static final org.apache.commons.logging.Log LOG
  • Constructor Details

    • DefaultLogger

      DefaultLogger()
  • Method Details

    • isTraceEnabled

      public boolean isTraceEnabled()
      Description copied from interface: WebConsole.Logger
      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.

      Specified by:
      isTraceEnabled in interface WebConsole.Logger
      Returns:
      true if trace is enabled in the underlying logger.
    • trace

      public void trace(Object message)
      Description copied from interface: WebConsole.Logger
      Logs a message with trace log level.
      Specified by:
      trace in interface WebConsole.Logger
      Parameters:
      message - log this message
    • isDebugEnabled

      public boolean isDebugEnabled()
      Description copied from interface: WebConsole.Logger
      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.

      Specified by:
      isDebugEnabled in interface WebConsole.Logger
      Returns:
      true if debug is enabled in the underlying logger.
    • debug

      public void debug(Object message)
      Description copied from interface: WebConsole.Logger
      Logs a message with debug log level.
      Specified by:
      debug in interface WebConsole.Logger
      Parameters:
      message - log this message
    • isInfoEnabled

      public boolean isInfoEnabled()
      Description copied from interface: WebConsole.Logger
      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.

      Specified by:
      isInfoEnabled in interface WebConsole.Logger
      Returns:
      true if info is enabled in the underlying logger.
    • info

      public void info(Object message)
      Description copied from interface: WebConsole.Logger
      Logs a message with info log level.
      Specified by:
      info in interface WebConsole.Logger
      Parameters:
      message - log this message
    • isWarnEnabled

      public boolean isWarnEnabled()
      Description copied from interface: WebConsole.Logger
      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.

      Specified by:
      isWarnEnabled in interface WebConsole.Logger
      Returns:
      true if warn is enabled in the underlying logger.
    • warn

      public void warn(Object message)
      Description copied from interface: WebConsole.Logger
      Logs a message with warn log level.
      Specified by:
      warn in interface WebConsole.Logger
      Parameters:
      message - log this message
    • isErrorEnabled

      public boolean isErrorEnabled()
      Description copied from interface: WebConsole.Logger
      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.

      Specified by:
      isErrorEnabled in interface WebConsole.Logger
      Returns:
      true if error is enabled in the underlying logger.
    • error

      public void error(Object message)
      Description copied from interface: WebConsole.Logger
      Logs a message with error log level.
      Specified by:
      error in interface WebConsole.Logger
      Parameters:
      message - log this message