GWT log file when deployed

不打扰是莪最后的温柔 提交于 2020-01-06 05:49:27

问题


i have a GWT web application project and i will deploy it to Tomcat. before deploying it, i want to set a log file so that i can trace if some errors occur like JavaScriptException. how can i do this?

as i did some research, i've read that GWT's default logging does not emulate the FileHandler that allow me write my log file to a specific file. Then from some forums about logging, someone has been using log4j but log4j is for Java (am i right?).

how can i do the logging for my GWT app?


回答1:


You can use the built in logging capabilities of GWT. In particular you will be mostly interested in remote logging, which sends log messages logged on the client to the server in an RPC call (obviously you only want to use this in exceptional circumstances).

You can also use the gwt-log project and consider using the RemoteLogger.



来源:https://stackoverflow.com/questions/10274514/gwt-log-file-when-deployed

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