Class CmsDebugLog

java.lang.Object
org.opencms.gwt.client.util.CmsDebugLog

public final class CmsDebugLog extends Object
A basic debug log, to print messages into the client window.

Since:
8.0.0
  • Field Details

    • m_html

      protected com.google.gwt.dom.client.Element m_html
      The wrapped widget.
  • Method Details

    • consoleLog

      public static void consoleLog(String message)
      Logs a message to the browser console if possible.

      Parameters:
      message - the message to log
    • consoleLogObject

      public static void consoleLogObject(Object object)
      Logs an object to the browser console if possible.

      Parameters:
      object - the object to log
    • consoleTrace

      public static void consoleTrace(String message)
      Logs a message and includes the current stack trace.
      Parameters:
      message - the message to log
    • getInstance

      public static CmsDebugLog getInstance()
      Returns the debug log.

      Returns:
      the debug log
    • clear

      public void clear()
      Clears the debug log.

    • printLine

      public void printLine(String text)
      Prints a new line into the log window by adding a p-tag including given text as HTML.

      Parameters:
      text - the text to print