Java 使用log4j进行GWT远程日志记录
我想将GWT客户端日志记录到服务器中的日志文件中(我的应用程序基于GWT Springs) 我做了以下改变: 1) 在gwt.xml文件中,包含以下行Java 使用log4j进行GWT远程日志记录,java,spring,gwt,logging,Java,Spring,Gwt,Logging,我想将GWT客户端日志记录到服务器中的日志文件中(我的应用程序基于GWT Springs) 我做了以下改变: 1) 在gwt.xml文件中,包含以下行 a)<inherits name="com.google.gwt.logging.Logging"/> b)<set-property name="gwt.logging.simpleRemoteHandler" value="ENABLED"/> 3) 在web.xml中,我定义了如下servlet <serv
a)<inherits name="com.google.gwt.logging.Logging"/>
b)<set-property name="gwt.logging.simpleRemoteHandler" value="ENABLED"/>
3) 在web.xml中,我定义了如下servlet
<servlet>
<servlet-name>remoteLoggingServlet</servlet-name>
<servlet-class>com.google.gwt.logging.server.RemoteLoggingServiceImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>remoteLoggingServlet</servlet-name>
<url-pattern>/module_name/remote_logging</url-pattern>
</servlet-mapping>
remoteLoggingServlet
com.google.gwt.logging.server.RemoteLoggingServiceImpl
remoteLoggingServlet
/模块名称/远程日志记录
4) 在Springs中,我有log4j配置,它将服务/dao层中的所有日志记录到一个日志文件中
但是,我无法将GWT日志打印到服务器中的日志文件中
1) 有人能在这个问题上帮忙吗
2) 我也无法理解GWT日志到服务器中日志文件的流程
3) /module\u name/remote\u logging
4) 在URL模式中,模块名称/之后应该显示什么
5) 是否将/remote_日志映射到其他任何位置
<servlet>
<servlet-name>remoteLoggingServlet</servlet-name>
<servlet-class>com.google.gwt.logging.server.RemoteLoggingServiceImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>remoteLoggingServlet</servlet-name>
<url-pattern>/module_name/remote_logging</url-pattern>
</servlet-mapping>