Remote Logger - Debug Log Logging Not Working

110 views
Skip to first unread message

PTJ

unread,
Jan 12, 2012, 5:17:40 PM1/12/12
to gwt-log
I am having trouble getting debug logging to work when using the
remote logging option. I have configured my project to compile with
log level of ERROR and would like to use the query parameter method to
change the log level to DEBUG. When running with a log level of ERROR
everything works great. When running with in DEBUG none of my debug
logs are getting logged on the server. The only time I am getting
debug logs is when running my project in debug mode via eclipse.

The log_level is being set appropriately, which I have checked via a
call to Log.getCurrentLogLevel(). This code snipped will print out
the correct log_level and "Log level set to ERROR..." when ERROR
logging, but will never print "Log level set to DEBUG...".

Log.error("Logging log_level: " + Log.getCurrentLogLevel());

switch(Log.getCurrentLogLevel()) {
case Log.LOG_LEVEL_DEBUG:
Log.debug("Log level set to DEBUG...");
break;

case Log.LOG_LEVEL_ERROR:
Log.error("Log level set to ERROR...");
break;
}


Any ideas why I am seeing this behavior? I understand this may not be
an issue with gwt-log but possibly my logging configuration on the
server(s). I have tested this against weblogic and jboss with the
same results. Any help would be greatly appreciated. Provided below
is my lib versions and configuration.


Library Versions:
gwt-log v3.1.5
GWT v2.3.0
Tested Servers: JBoss Application Server 6.1, Weblogic 11gR1


XXX.gwt.xml configuration:

<inherits name="com.allen_sauer.gwt.log.gwt-log-DEBUG" />
<extend-property name="log_level" values="ERROR"/>
<inherits name="com.allen_sauer.gwt.log.gwt-log-RemoteLogger" />
<set-property name="log_DivLogger" value="DISABLED" />


Regards,
Paul J.





Collect A. Ads

unread,
Jan 21, 2012, 1:29:32 PM1/21/12
to gwt...@googlegroups.com

-- 
Collect A. Ads
Gesendet mit Sparrow

--
You received this message because you are subscribed to the Google Groups "gwt-log" group.
To post to this group, send email to gwt...@googlegroups.com.
To unsubscribe from this group, send email to gwt-log+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gwt-log?hl=en.

Fred Sauer

unread,
Jan 21, 2012, 7:17:23 PM1/21/12
to gwt...@googlegroups.com
You can use web developer tools / firebug / whatever to confirm that messages are being sent to the server.

Temporarily enable the DivLogger to confirm that debug messages are not being filtered, i.e that your query parameter is working.

If both those are in order then you're filtering the messages on the server.

You can always set a breakpoint in the gwt-log servlet which receives the log message and follow along to see where things are being filtered and how they are being handled.

--
You received this message because you are subscribed to the Google Groups "gwt-log" group.
To post to this group, send email to gwt...@googlegroups.com.
To unsubscribe from this group, send email to gwt-log+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gwt-log?hl=en.




--
Fred Sauer
fr...@allen-sauer.com
Reply all
Reply to author
Forward
0 new messages