Disable freemarker logs

纵然是瞬间 提交于 2019-12-02 02:17:35

If you are on Weblogic you can disable the debug messages with a LogFilter as described here: http://blog.technogemsinc.com/2012/09/weblogic-disabling-freemark-debug.html.

Look where you configure java.util.logging (or commons logging maybe). If the logger says that it logs debug-level messages from FreeMaker, FreeMarker will send debug-level messages. This is just like with any other library.

Disabling FreeMarker logging is certainly not a good idea, as you want to see the warnings and errors. (The reasons LIBRARY_NONE doesn't work is certainly that you call it too late, when some messages was already logged, and thus FreeMarker logging was already initialized.)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!