可以使用什么日志记录来登录 GWT 共享代码?

发布于 2024-09-25 10:55:12 字数 424 浏览 0 评论 0原文

GWT 项目中有三种类型的代码:

  1. 客户端代码 (GWT 客户端 / javascript)
  2. 服务器代码 (servlet 容器 / java)
  3. 共享代码 (GWT 客户端和 servlet 容器 / javascript 和 java)

可用于每种类型的日志记录框架:

  1. 客户端- gwt-log
  2. 服务器 - slf4j
  3. 共享 - ???

我想为可能包括日志记录的共享代码编写一次。

有什么解决方案吗?

There are three types of code in a GWT project:

  1. Client code (GWT client / javascript)
  2. Server code (servlet container / java)
  3. Shared code (GWT client & servlet container / javascript & java)

Logging framework usable for each type:

  1. Client - gwt-log
  2. Server - slf4j
  3. Shared - ???

I'd like to have a write once for the shared code that could include logging.

Any solutions out there for this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小ぇ时光︴ 2024-10-02 10:55:12

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文