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

    <style type="text/css">
        .ui-log {
            left: 500px;
            top: 250px;
    <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"/>


    Built-in component themes created by the PrimeFaces Theme Designer.

    nova-light Nova-Light
    nova-dark Nova-Dark
    nova-colored Nova-Colored
    luna-blue Luna-Blue
    luna-amber Luna-Amber
    luna-green Luna-Green
    luna-pink Luna-Pink
    omega Omega


    Create awesome applications in no time using the premium templates and impress your users.