Thursday, April 6, 2017

logging level DEBUG

I want to be able to log messages with a debug level. According to http://www.gwtproject.org/doc/latest/DevGuideCompilingAndDebugging.html I can set a log level DEBUG.
 
-logLevel The level of logging detail: ERROR, WARN, INFO, TRACE, DEBUG, SPAM or ALL (defaults to INFO)

What I don't understand is how I'm supposed to log messages with debug level. Using the java.util.logging.Logger:

Logger logger = logger.getLogger("LoggerName");
logger
.log(Level.DEBUG, "some message");//Level.DEBUG doesn't exist

How can one make sure that some messages get logged with level DEBUG?

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment