This content has been marked as final.
Show 3 replies
-
1. Re: Client Side Logging in Errai ?
mbarkley Mar 28, 2014 2:53 PM (in response to chaluwa)1 of 1 people found this helpfulThe preferred method for client-side logging is to inject an slf4j logger. It's implemented using the GWT Logging, which uses the same API as JUL.
-
2. Re: Client Side Logging in Errai ?
chaluwa Mar 31, 2014 12:41 PM (in response to mbarkley)Thanks for the info, but even @Inject private Logger log (slf4j Logger) outputs 2 messages for a single call to log.info(" ... ") on chrome console.
-
3. Re: Client Side Logging in Errai ?
mbarkley Apr 3, 2014 10:14 AM (in response to chaluwa)Hmm, my best guess is that your module or one of the module's it inherits has activated the default GWT log handlers. This page describes how to turn off a specific log handler and lists them all at the bottom. I would give that a try.
EDIT: added the link