Package org.htmlunit

Class WebConsole.DefaultLogger

  • All Implemented Interfaces:
    java.io.Serializable, WebConsole.Logger
    Enclosing class:
    WebConsole

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

      Fields 
      Modifier and Type Field Description
      private static org.apache.commons.logging.Log LOG  
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultLogger()  
    • Method Summary

      All Methods Instance Methods Concrete 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOG

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

      • DefaultLogger

        DefaultLogger()
    • Method Detail

      • 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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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