Understanding JSF Process Flow

I am currently studying the internal workings of JSF. For this, I would like to include the TRACE or DEBUG logs of all javax.faces classes. How can i do this? Could such a mechanism be implemented for other such structures?

+3
source share
1 answer

Open the file [jdk_install_dir]/jre/lib/logging.properties, scroll down and edit the next line at the bottom

java.util.logging.ConsoleHandler.level = INFO

at

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 includes all the logging for the JSF API, and the second for the JSF impl, assuming you are using Mojarra.

+4
source

All Articles