3

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?

Shyam Kumar Sundarakumar
  • 5,649
  • 13
  • 42
  • 69

1 Answers1

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