开发者

Understanding JSF Process Flow

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 开发者_Go百科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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜