Component identification parameters

Name | Value
--- | ---
component-type | org.ajax4jsf.Log
component-family | org.ajax4jsf.Log
component-class | org.ajax4jsf.component.html.AjaxLog
renderer-type | org.ajax4jsf.LogRenderer

## Creating on a page

To use the component, it's necessary to place the following string on a page:

    <a4j:log/>

Then, in order to open a log window, press "CTRL+SHIFT+L" on a page with the component.

## Dynamical creation of a component from Java code

Example:

    import org.ajax4jsf.component.html.AjaxLog;
    ...
    AjaxLog myLog = new AjaxLog();
    ...

## Key attributes and ways of usage

Usage of the appropriate component attributes could change a representation level of debug information as well as the hot key for a window opening.

The hot key could be changed with the "hotkey" attribute, where it's necessary to define one letter that together with "CTRL+SHIFT" opens a window.

The "level" attribute with several possible values (FATAL, ERROR, WARN, INFO, ALL) could change a logging level.

The log could be generated not only in a new window, but also on the current page in a separate <div>, this is also controlled with the "popup" attribute on the component.

Example:

    <a4j:log level="ALL" popup="false" width="400" height="200"/>

The component defined this way is decoded on a page as <div> inside a page, where all the information beginning with informational message is generated.

Note:

<a4j:log> is getting renewed automatically after execution of Ajax requests. Don't renew <a4j:log> by using reRender!

## Relevant resources links

Here you can see the example of <a4j:log> usage and sources for the given example.