Skip to content

TWebConsoleLog

Description

TWebConsoleLog permits to capture the output sent normally to the browser console log to a HTML element. This can be especially on mobile devices interesting for debugging purposes as the browser console is not easily accessible on the mobile device itself. It captures calls to console.log(), console.info(), console.warn(), console.error().

The TWebConsoleLog is a control that represents a HTML DIV element that captures the output sent to the browser console.
Designtime Runtime

HTML template tag

The HTML tag the component can be associated with a DIV element in an HTML template. attribute with a unique value and set the identical value to the ElementID property. Detailed information can be found in the Use of HTML templates topic.

HTML tag <DIV ID=”UniqueID”></DIV>
ElementID UniqueID

Properties for TWebConsoleLog

Property Description
AutoScroll: Boolean When true, the control will automatically scroll to the last console output line when a new log is sent to the console.
ElementClassName Sets the CSS class name attributes
ElementFont Determines whether the Font property values will be applied as font style or if CSS based font settings will be used
ElementPosition Defines whether the DIV is shown absolute positions or relative positioned
Name Sets the name of the HTML DIV element

Methods for TWebConsoleLog

Method Description
Clear Clear all messages from the HTML element for the console log