Package org.opencms.gwt.client.util
Class CmsDebugLog
java.lang.Object
org.opencms.gwt.client.util.CmsDebugLog
A basic debug log, to print messages into the client window.
- Since:
- 8.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.google.gwt.dom.client.Element
The wrapped widget. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears the debug log.static void
consoleLog
(String message) Logs a message to the browser console if possible.static void
consoleLogObject
(Object object) Logs an object to the browser console if possible.static void
consoleTrace
(String message) Logs a message and includes the current stack trace.static CmsDebugLog
Returns the debug log.void
Prints a new line into the log window by adding a p-tag including given text as HTML.
-
Field Details
-
m_html
The wrapped widget.
-
-
Method Details
-
consoleLog
Logs a message to the browser console if possible.- Parameters:
message
- the message to log
-
consoleLogObject
Logs an object to the browser console if possible.- Parameters:
object
- the object to log
-
consoleTrace
Logs a message and includes the current stack trace.- Parameters:
message
- the message to log
-
getInstance
Returns the debug log.- Returns:
- the debug log
-
clear
Clears the debug log. -
printLine
Prints a new line into the log window by adding a p-tag including given text as HTML.- Parameters:
text
- the text to print
-