Log Log component is a visual console to display internal logs of PrimeFaces. Using log client side API, you can also use the component.

    Client Side API

    Ajax Request

    <p:log id="log" />
    
    <h3 style="margin-top:0">Client Side API</h3>
    <p:commandButton type="button" id="info" value="Info" onclick="PrimeFaces.info('This is an info message.')" />
    <p:commandButton type="button" id="warn" value="Warn" onclick="PrimeFaces.warn('This is a warn message.')" />
    <p:commandButton type="button" id="debug" value="Debug" onclick="PrimeFaces.debug('This is a debug message.')" />
    <p:commandButton type="button" id="error" value="Error" onclick="PrimeFaces.error('This is an error message.')" />
    
    <h3>Ajax Request</h3>
    <h:form id="form">
        <h:panelGrid id="grid" columns="4" cellpadding="5">
            <p:outputLabel for="name" value="Name:" style="font-weight:bold"/>
            <p:inputText id="name" />
            <p:commandButton value="Submit" update="grid"/>
        </h:panelGrid>
    </h:form>
                    
    PrimeTek, Copyright © 2015
    All rights reserved.
    Running PrimeFaces-6.1-SNAPSHOT on Mojarra-2.2.8.