我正在使用 DWR3,但我不知道如何让日志记录工作。无论我做什么,在尝试调试编组问题时,我似乎都看不到任何 DWR3 输出。如何启用日志记录?
web.xml
<servlet>
<servlet-name>dwr</servlet-name>
<servlet-class>org.directwebremoting.spring.DwrSpringServlet</servlet-class>
<init-param>
<param-name>jsonpEnabled</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>accessLogLevel</param-name>
<param-value>CALL</param-value>
</init-param>
</servlet>
配置文件
debug 'org.directwebremoting.log.*'
info 'com.example.b'
debug 'com.example.a'
// Example of changing the log pattern for the default console
// appender:
//
appenders {
console name: 'stdout', layout: pattern(conversionPattern: '%-5p: %c - %m%n')
}
这里发生了什么?