简体   繁体   English

了解JSF工艺流程

[英]Understanding JSF Process Flow

I am currently studying the internal working of JSF.我目前正在研究 JSF 的内部工作。 To aid this I would like to enable TRACE or DEBUG logs of all javax.faces classes.为此,我想启用所有 javax.faces 类的 TRACE 或 DEBUG 日志。 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打开[jdk_install_dir]/jre/lib/logging.properties文件,滚动到底部并在底部附近编辑以下行

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.假设您使用的是 Mojarra,第一个是 JSF API 的所有日志记录,第二个是 JSF impl 的所有日志记录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM