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?
Asked
Active
Viewed 2,787 times
3
-
3http://balusc.blogspot.com/2006/09/debug-jsf-lifecycle.html – Bozho May 24 '11 at 09:26
-
1Thanks Balusc! This is really helpful and I am just going through your other tutorials. Wonderful! – Shyam Kumar Sundarakumar May 24 '11 at 10:33
-
1BalusC is the author of the blog, I'm just pasting the link (and I'm not him :) ) – Bozho May 24 '11 at 10:35
1 Answers
4
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.

BalusC
- 1,082,665
- 372
- 3,610
- 3,555