Package org.opencms.gwt.client.util
Class CmsDebugLog
- java.lang.Object
-
- org.opencms.gwt.client.util.CmsDebugLog
-
public final class CmsDebugLog extends java.lang.Object
A basic debug log, to print messages into the client window.- Since:
- 8.0.0
-
-
Field Summary
Fields Modifier and Type Field Description protected com.google.gwt.dom.client.Element
m_html
The wrapped widget.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Clears the debug log.static void
consoleLog(java.lang.String message)
Logs a message to the browser console if possible.static void
consoleTrace(java.lang.String message)
Logs a message and includes the current stack trace.static CmsDebugLog
getInstance()
Returns the debug log.void
printLine(java.lang.String text)
Prints a new line into the log window by adding a p-tag including given text as HTML.
-
-
-
Field Detail
-
m_html
protected com.google.gwt.dom.client.Element m_html
The wrapped widget.
-
-
Method Detail
-
consoleLog
public static void consoleLog(java.lang.String message)
Logs a message to the browser console if possible.- Parameters:
message
- the message to log
-
consoleTrace
public static void consoleTrace(java.lang.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(java.lang.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
-
-