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?
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.