Matt, Sorry for the delayed response. I was able confirm your issue in 3.0.0 and confirm that it works in 3.0.1.
Let me know if the latest release does not work for you as expected. Thanks Fred On Wed, Mar 31, 2010 at 2:30 AM, Matt <[email protected]> wrote: > Hey, > > first of all, thanks for the great logging library, works really well > in most of the cases. > > However, I'm having a slight issue when unit testing my presenters > which use gwt-log: gwt-log seems to fall back to ServerLogImplJDK14 > when running my unit tests in eclipse. This logging implementation > seems to stumble upon not being fully initialized. > > Reproduce: > -- snip > import com.allen_sauer.gwt.log.client.Log; > > public class TestLog { > @Test > public void test() { > Log.isDebugEnabled(); > } > } > -- snip > > java.lang.NullPointerException > at > > com.allen_sauer.gwt.log.server.ServerLogImplJDK14.isDebugEnabled(ServerLogImplJDK14.java: > 66) > at com.allen_sauer.gwt.log.client.Log.isDebugEnabled(Log.java:180) > at com.swisscom.eai.pams.client.presenter.TestLog.test(TestLog.java: > 10) > > Logger.getLevel() -> NULL -> NPE > > When I call Log.setCurrentLogLevel(Log.LOG_LEVEL_DEBUG); first in all > my unit tests the problem goes away. However, I'd prefer not to litter > these calls around my tests. Am I missing something or could there may > be an improvement that solves this issue? > > Thanks, > Matt > > -- > 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.
