How to display a server

I see that this is possible in the documents, but cannot find a way to implement it.

The Log API is also available through the PrimeFaces global object in case youd for example use the log component to display logs.

Using Primefaces 6.2

Price List Magazine Component

Link Log4J to <p:log id="log" />

+4
source share
1 answer

It is not possible to show the log on the server side in any simple way. Showcase states (fat mine, italics mine):

The Log Log component is a visual console for displaying PrimeFaces internal (read: client) logs. Using the log client API , you can also use the component.

- - . , . PrimeFaces , ( ), -side.

PrimeFaces.info('This is an info message.');
PrimeFaces.warn('This is a warn message.');
PrimeFaces.debug('This is a debug message.');
PrimeFaces.error('This is an error message.');

, , , PrimeFaces p:log, .

, log4j, cdi ( p:push) ( ), " log4j" PrimeFaces p:log, .

0

Source: https://habr.com/ru/post/1696103/


All Articles