9.2. <a4j:log>
The
<a4j:log> component generates JavaScript that opens a debug window, logging application information such as requests, responses, and DOM changes.
9.2.1. Basic usage
The
<a4j:log> component doesn't require any additional attributes for basic functionality.
9.2.2. Log monitoring
The
mode attribute determines how the log appears on the page.
- Set
mode="inline"to place the logging data in-line on the current page. This is the default setting. - Set
mode="popup"to present the logging data in a new pop-up window. The window is set to be opened by pressing the key combination Ctrl+Shift+L; this can be partially reconfigured with thehotkeyattribute, which specifies the letter key to use in combination with Ctrl+Shift instead of L.
The amount of data logged can be determined with the
level attribute:
- Set
level="ERROR"to log all errors. - Set
level="FATAL"to log only fatal messages. - Set
level="INFO"to log only informational messages. - Set
level="WARN"to log only warning messages. - Set
level="ALL"to log all data. This is the default setting.
Note
The log is automatically renewed after each Ajax request. It does not need to be explicitly re-rendered. To clear previous requests, implement a Clear button or similar functionality.
9.2.3. Reference data
component-type:org.richfaces.AjaxLogcomponent-class:org.richfaces.component.UIAjaxLogcomponent-family:org.richfaces.AjaxLogrenderer-type:org.richfaces.AjaxLogRenderer
9.2.4. Style classes and skin parameters
The
<a4j:log> component is intended primarily for debugging during development. However it is still possible to style the component if desired.
Table 9.1. Style classes (selectors) and corresponding skin parameters
| Class (selector) | Skin Parameters | Mapped CSS properties |
|---|---|---|
| generalTextColor
|
color
|
| No skin parameters. | |
| No skin parameters. | |
| No skin parameters. | |
| No skin parameters. | |
| No skin parameters. | |
| No skin parameters. | |
| No skin parameters. | |
| No skin parameters. | |
| No skin parameters. | |
| No skin parameters. | |
| No skin parameters. | |
| No skin parameters. | |
| No skin parameters. | |
| No skin parameters. | |
| No skin parameters. | |
