开发者

What logging can be used to log in GWT shared code?

开发者 https://www.devze.com 2023-01-18 12:09 出处:网络
There are three types of code in a GWT project: Client code (GWT c开发者_运维百科lient / javascript)

There are three types of code in a GWT project:

  1. Client code (GWT c开发者_运维百科lient / 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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消