可以使用什么日志记录来登录 GWT 共享代码?
GWT 项目中有三种类型的代码:
- 客户端代码 (GWT 客户端 / javascript)
- 服务器代码 (servlet 容器 / java)
- 共享代码 (GWT 客户端和 servlet 容器 / javascript 和 java)
可用于每种类型的日志记录框架:
我想为可能包括日志记录的共享代码编写一次。
有什么解决方案吗?
There are three types of code in a GWT project:
- Client code (GWT client / javascript)
- Server code (servlet container / java)
- Shared code (GWT client & servlet container / javascript & java)
Logging framework usable for each type:
I'd like to have a write once for the shared code that could include logging.
Any solutions out there for this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
GWT 2.1 包括java.util.logging 模拟,您可以找到示例使用它的项目。您应该能够在客户端和服务器端运行的共享代码中使用它。
GWT 2.1 includes java.util.logging emulation, you can find a sample project using it. You should be able to use this in shared code that's running on the client side and server side.