Check if getLogger() returns null, which is what I think it does. Fred
On Wed, May 12, 2010 at 5:06 PM, Shawn Johnson <[email protected]>wrote: > Is there a way to check if the DivLogger is enabled/disabled? > > My team is using gwt-platform, which right now is putting our > application directly into the RootPanel. This appears to be > overwritting the DivLogger. I added the following: > > Widget divLogger = Log.getLogger(DivLogger.class).getWidget(); > RootPanel.get("myLogger").add(divLogger); > > However, when I switch off the DivLogger in our gwt.xml the app fails > to load on the getLogger line above. I'd like to either check for > that logger being enabled, or find another way to add the DivLogger. > > Thanks! > > -- > You received this message because you are subscribed to the Google Groups > "gwt-log" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<gwt-log%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/gwt-log?hl=en. > > -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 [email protected] -- You received this message because you are subscribed to the Google Groups "gwt-log" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/gwt-log?hl=en.
