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].
For more options, visit this group at 
http://groups.google.com/group/gwt-log?hl=en.

Reply via email to