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,549
  • 13
  • 41
  • 67

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,040,783
  • 362
  • 3,548
  • 3,513