Disable remote logging by code

86 views
Skip to first unread message

nurit guthrie

unread,
Jan 24, 2013, 3:49:00 AM1/24/13
to gwt...@googlegroups.com
I am using remote logging (by adding <inherits name="com.allen_sauer.gwt.log.gwt-log-RemoteLogger" /> to the gwt.xml etc).
However, I want to have the option to turn remote logging off by using an external parameter.
How can this be done?

Thanks,
Nurit.

Fred Sauer

unread,
Jan 24, 2013, 1:21:08 PM1/24/13
to gwt...@googlegroups.com
You can add a customer logger via Logger.addLogger() and control it programmatically.


--
You received this message because you are subscribed to the Google Groups "gwt-log" group.
To view this discussion on the web visit https://groups.google.com/d/msg/gwt-log/-/8dD0zxzAJ40J.
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
fre...@gmail.com

nurit guthrie

unread,
Feb 3, 2013, 9:00:57 AM2/3/13
to gwt...@googlegroups.com
Thank you for the quick reply. I think I need further clarification; how can I disable ONLY the remote logging and not all logging by using customer logger? Right now, whenever I log something, a log is automatically sent to the server as well, how can I control that in my customer logger?

Thanks.

בתאריך יום חמישי, 24 בינואר 2013 20:21:08 UTC+2, מאת Fred Sauer:

Fred Sauer

unread,
Feb 3, 2013, 12:52:08 PM2/3/13
to gwt...@googlegroups.com
You could replace the RemoteLogger with your own implementation and do whatever you like based on whatever conditions you like.




To unsubscribe from this group and stop receiving emails from it, send an email to gwt-log+u...@googlegroups.com.

To post to this group, send email to gwt...@googlegroups.com.



--
Fred Sauer
fre...@gmail.com

nurit guthrie

unread,
Feb 10, 2013, 4:32:11 AM2/10/13
to gwt...@googlegroups.com
One last question: I want to have the same capabilities as your RemoteLoggerImpl, but with my added conditions. My customized logger cannot inherit RemoteLoggerImpl because it is final, and also cannot hold it as a private variable because I need my own RemoteLoggerConfig. Is there any other way to gain the capabilities of RemoteLoggerImpl (other than copying the class)?

Thank you.

Fred Sauer

unread,
Feb 10, 2013, 11:32:39 AM2/10/13
to gwt...@googlegroups.com

Suggest copying the class or forking the git codebase.

Reply all
Reply to author
Forward
0 new messages