GWT logging setup

后端 未结 3 696
挽巷
挽巷 2020-12-28 22:55

I\'m using GWT 2.1 java.util.logging emulation to log client side messages. According to the doc, two Formatters are provided (TextFormatter and HTMLFormatter) which are app

3条回答
  •  爱一瞬间的悲伤
    2020-12-28 23:13

    See the GWT documentation for logging here. It really depends on where you want your logging to appear, but if you only care about logging in Dev mode then you only need the SystemLogHandler and the DevelopmentModeLogHandler. The ConsoleLogHandler and FirebugLogHandler are used for web mode logging to chrome, firebug and firebug lite. The PopupLogHandler and HasWidgetsLogHandler add the log messages to some sort of UI element. All of the above should be capable of being enabled/disabled in the .gwt.xml except the HasWidgetsLogHandler which requires an associated widget container. This should be possible by adding the following:

    
     # To change the default logLevel
     # To disable logging
      # To disable a default Handler
    
    
    
    
    
    etc...
    

提交回复
热议问题