Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Understanding JSF Process Flow

Tags:

logging

jsf

I am currently studying the internal working of JSF. To aid this I would like to enable TRACE or DEBUG logs of all javax.faces classes. How can I do this? Can such a mechanism be done for other such frameworks too?

like image 610
Shyam Avatar asked Jan 27 '26 06:01

Shyam


1 Answers

Open the [jdk_install_dir]/jre/lib/logging.properties file, scroll to the bottom and edit the following line near the bottom

java.util.logging.ConsoleHandler.level = INFO

into

java.util.logging.ConsoleHandler.level = ALL

and add the following two lines to the very bottom

javax.faces.level = ALL
com.sun.faces.level = ALL

The first turns all logging for JSF API and the second for the JSF impl, assuming that you're using Mojarra.

like image 166
BalusC Avatar answered Jan 28 '26 23:01

BalusC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!