Re: CORS remote logging

2017-07-21 Thread Jens
Maybe you have to configure Tomcat logging correctly? 

GWT simply uses the LogRecord you send and logs it (after deobfuscating) 
using java.util.logging.Logger.log(LogRecord). Just set a breakpoint in 
RemoteLoggingServiceImpl.logOnServer(LogRecord) to see what is going on.

-- J.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


CORS remote logging

2017-07-21 Thread David
I am 
following 
http://spreadgwt.blogspot.com/2015/11/log-gwt-client-errors-on-server-side.html 
to use GWT remote logging feature. My server is Tomcat 8. Once I run my GWT 
application in Chrome, in "Network" tab, I can see everything going well 
(Please see Headers from Chrome below)
.


   1. Remote Address:
   180.96.101.13:10085
   2. Request URL:
   http://www.mydomain.com:10085/sp/chigo/remote_logging
   3. Request Method:
   POST
   4. Status Code:
   200 OK
   5. Request Headersview source
  1. Accept:
  */*
  2. Accept-Encoding:
  gzip,deflate
  3. Accept-Language:
  en-US,en;q=0.8
  4. Cache-Control:
  max-age=0
  5. Connection:
  keep-alive
  6. Content-Length:
  298
  7. Content-Type:
  text/x-gwt-rpc; charset=UTF-8
  8. Host:
  www.mydomain.com:10085
  9. Origin:
  http://61.142.206.125:9101
  10. Referer:
  http://61.142.206.125:9101/waf/index.action
  11. User-Agent:
  Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) 
  AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 
  Safari/9537.53
  12. X-GWT-Module-Base:
  http://www.mydomain.com:10085/sp/chigo/
  13. X-GWT-Permutation:
  AD0D34E43C3D4F9B1EEE6384940C8483
  6. Request Payload
  1. 
7|0|8|http://www.mydomain.com:10085/sp/chigo/|E5CFE27DD53BDBE4521FDBFC1A038618|com.google.gwt.logging.shared.RemoteLoggingService|logOnServer|java.util.logging.LogRecord/2492345967|INFO|Taking
 
  45 milliseconds to layout 
  3932|com.mydomain.gwt.client.Layout|1|2|3|4|1|5|5|6|7|8|V1kCRyY|0|
   7. Response Headersview source
  1. Access-Control-Allow-Headers:
  X-PINGOTHER, Origin, X-Requested-With, Content-Type, Accept, 
  x-gwt-module-base, x-gwt-permutation
  2. Access-Control-Allow-Methods:
  POST, TRACE, OPTIONS
  3. Access-Control-Allow-Origin:
  *
  4. Access-Control-Max-Age:
  1728000
  5. Content-Disposition:
  attachment
  6. Content-Length:
  14
  7. Content-Type:
  application/json;charset=utf-8
  8. Date:
  Fri, 21 Jul 2017 07:24:43 GMT
  9. Server:
  Apache-Coyote/1.1
  
In Tomcat localhost_access_log.2017-07-21.txt log file, I can see this 
entry 123.179.103.242 - - [21/Jul/2017:17:28:23 +0800] "POST 
/sp/chigo/remote_logging HTTP/1.1" 200 14.

My question is I can not see any log information in log files under Tomcat 
logs folder. 

Thanks,

David
 

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: How to Remote Logging without using RPC?

2015-06-29 Thread Chak Lai
Thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: How to Remote Logging without using RPC?

2015-06-29 Thread Ignacio Baca Moreno-Torres
Remote logging example using request factory 
https://github.com/gwtproject/gwt/blob/master/samples/dynatablerf/src/main/java/com/google/gwt/sample/dynatablerf/client/DynaTableRf.java#L73

On Monday, June 29, 2015 at 9:27:59 PM UTC+2, Chak Lai wrote:
>
> In the GWT application that I am working on, it is setup to remote-logging 
> with any uncaught exceptions via SerializableThrowable >> RPC >> 
>  StackTraceDeobfuscator ...
>
> Is there any documentation on how to do it without using RPC? 
>
> I have search the Internet but is seems most of the documentation are 
> using RPC. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


How to Remote Logging without using RPC?

2015-06-29 Thread Chak Lai
In the GWT application that I am working on, it is setup to remote-logging 
with any uncaught exceptions via SerializableThrowable >> RPC >> 
 StackTraceDeobfuscator ...

Is there any documentation on how to do it without using RPC? 

I have search the Internet but is seems most of the documentation are using 
RPC. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT Remote Logging message gets logged twice

2014-01-10 Thread sluettmann
No one that has any idea what to do about that issue?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


GWT Remote Logging message gets logged twice

2013-12-03 Thread sluettmann
Hello everybody,
I'm fairly new to the google user group of gwt but i came across a very 
annoying problem while implementing gwt logging and cause I don't have any 
idea how to solve that I hope someone else from here has an idea.

I implemented logging in our gwt application with log4j. I used 
"log4j-gwt.jar" to access log4j loggers even on client site.

I also implemented my own remote logging servlet and put it in my web.xml. 
This servlet overrides the logOnServer() method, takes the log record and 
logs it into a log4j logger. That works fine so far.

But every time a client logs a message I see two messages in the console. 
(only in development mode by the way) 
One from my log4j logger with the specified pattern and one that looks like 
from the java.util.logging logger.

Does anybody came across this issue already and knows how to completely 
disable the default java.util.logging in gwt?

Thanks in advance!

Cheers
 Sven

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


OOP question for remote logging

2013-06-26 Thread Leung
Hi,

I am using java.util.Logger for remote logging. The Logger is called by the 
client side objects. Other than instantiate Logger for every class on the 
client side, is there any way to put it in a separate class? (OOP way).

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: GWT Remote Logging - Logger Name replaced by logOnServer

2012-05-02 Thread Marco
Just had the same problem. Seems to be Issue 
1930

As a (temporary) workaround I replaced the 
RemoteLoggingServiceUtilwith
 my own implementation. My logging util logs the JUL 
(java.util.logging) 
LogRecords
 
to SLF4J through 
SLF4JBridgeHandler
.

Hopefully this will not be neccessary any more in future versions of GWT.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/CJJtdmFcu9oJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Remote Logging

2011-12-22 Thread Keith Bennett
Ed,

Thank you for the link.  I tried searching for a solution myself, but
I guess I didn't enter the correct search terms.  Regardless, after
tinkering with several of the solutions offered via the link you sent
me, the following solution worked for me:

Logger globalLogger = Logger.getLogger("");
Handler[] handlers = globalLogger.getHandlers();
for(Handler handler : handlers) {
globalLogger.removeHandler(handler);
}
SLF4JBridgeHandler.install();

Thank you very much for your help!

On Dec 22, 1:10 pm, Ed Bras  wrote:
> Google is your 
> friend:http://stackoverflow.com/questions/2533227/how-can-i-disable-the-defa...
> 
>
> On Thu, Dec 22, 2011 at 6:44 PM, Keith Bennett
> wrote:
>
>
>
>
>
>
>
> > Ed, thanks for your reply!  The log data is now being directed to my
> > logback files on the server, but I still have one remaining issue.  I
> > noticed that all of the java.util.logging get additionally logged to
> > my Tomcat console.  Any native logback logging statements do not.  So,
> > with the introduction of the SLF4JBrideHandler.install() method, do
> > you know of a way to suppress the java.util.logging output on the
> > Tomcat console yet still allow it to be directed to the logback files?
>
> > On Dec 21, 2:12 pm, Ed Bras  wrote:
> > > Make sure you correctly install the jul bridge:
> > SLF4JBridgeHandler.install()
> > > when your app starts.
> > > See:http://www.slf4j.org/api/org/slf4j/bridge/SLF4JBridgeHandler.html
>
> > > If that doesn't work, then debug it, and you will quickly find out what
> > > goes wrong.
>
> > > On Wed, Dec 21, 2011 at 8:54 PM, Keith Bennett
> > > wrote:
>
> > > > Ed, I have followed all of the guidelines as documented in the first
> > > > link you sent.  Again, I am able to direct the log output to my
> > > > logback-managed files, but only if I use the RemoteLoggingServiceImpl
> > > > and RemoteLoggingServiceUtil custom classes I created that use the
> > > > slf4j Logger and LogFactory classes.  I know that these classes use
> > > > java.util.logging as Thomas first mentioned.  If I can get the slf4j
> > > > bridge configured, I am assuming that I can use the GWT versions of
> > > > these classes instead of mine.  All I'm trying to figure out now is
> > > > how to properly configure the slf4j bridge as Thomas indicated I
> > > > should do.  I have referenced instructions listed at
> > > >http://www.slf4j.org/legacy.html.
> > > > Is there anything more I need to do other than including the jul-to-
> > > > slf4j jar as a dependency?
>
> > > > On Dec 21, 1:41 pm, Ed  wrote:
> > > > > Have a look at:
> > > > > + gwt logging:
> > > >http://code.google.com/webtoolkit/doc/latest/DevGuideLogging.html
> > > > > + gwt-log:http://code.google.com/p/gwt-log/
>
> > > > > 
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Google Web Toolkit" group.
> > > > To post to this group, send email to
> > google-web-toolkit@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Remote Logging

2011-12-22 Thread Ed Bras
Google is your friend:
http://stackoverflow.com/questions/2533227/how-can-i-disable-the-default-console-handler-while-using-the-java-logging-api


On Thu, Dec 22, 2011 at 6:44 PM, Keith Bennett
wrote:

> Ed, thanks for your reply!  The log data is now being directed to my
> logback files on the server, but I still have one remaining issue.  I
> noticed that all of the java.util.logging get additionally logged to
> my Tomcat console.  Any native logback logging statements do not.  So,
> with the introduction of the SLF4JBrideHandler.install() method, do
> you know of a way to suppress the java.util.logging output on the
> Tomcat console yet still allow it to be directed to the logback files?
>
> On Dec 21, 2:12 pm, Ed Bras  wrote:
> > Make sure you correctly install the jul bridge:
> SLF4JBridgeHandler.install()
> > when your app starts.
> > See:http://www.slf4j.org/api/org/slf4j/bridge/SLF4JBridgeHandler.html
> >
> > If that doesn't work, then debug it, and you will quickly find out what
> > goes wrong.
> >
> > On Wed, Dec 21, 2011 at 8:54 PM, Keith Bennett
> > wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Ed, I have followed all of the guidelines as documented in the first
> > > link you sent.  Again, I am able to direct the log output to my
> > > logback-managed files, but only if I use the RemoteLoggingServiceImpl
> > > and RemoteLoggingServiceUtil custom classes I created that use the
> > > slf4j Logger and LogFactory classes.  I know that these classes use
> > > java.util.logging as Thomas first mentioned.  If I can get the slf4j
> > > bridge configured, I am assuming that I can use the GWT versions of
> > > these classes instead of mine.  All I'm trying to figure out now is
> > > how to properly configure the slf4j bridge as Thomas indicated I
> > > should do.  I have referenced instructions listed at
> > >http://www.slf4j.org/legacy.html.
> > > Is there anything more I need to do other than including the jul-to-
> > > slf4j jar as a dependency?
> >
> > > On Dec 21, 1:41 pm, Ed  wrote:
> > > > Have a look at:
> > > > + gwt logging:
> > >http://code.google.com/webtoolkit/doc/latest/DevGuideLogging.html
> > > > + gwt-log:http://code.google.com/p/gwt-log/
> >
> > > > 
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to
> google-web-toolkit@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Remote Logging

2011-12-22 Thread Keith Bennett
Ed, thanks for your reply!  The log data is now being directed to my
logback files on the server, but I still have one remaining issue.  I
noticed that all of the java.util.logging get additionally logged to
my Tomcat console.  Any native logback logging statements do not.  So,
with the introduction of the SLF4JBrideHandler.install() method, do
you know of a way to suppress the java.util.logging output on the
Tomcat console yet still allow it to be directed to the logback files?

On Dec 21, 2:12 pm, Ed Bras  wrote:
> Make sure you correctly install the jul bridge: SLF4JBridgeHandler.install()
> when your app starts.
> See:http://www.slf4j.org/api/org/slf4j/bridge/SLF4JBridgeHandler.html
>
> If that doesn't work, then debug it, and you will quickly find out what
> goes wrong.
>
> On Wed, Dec 21, 2011 at 8:54 PM, Keith Bennett
> wrote:
>
>
>
>
>
>
>
> > Ed, I have followed all of the guidelines as documented in the first
> > link you sent.  Again, I am able to direct the log output to my
> > logback-managed files, but only if I use the RemoteLoggingServiceImpl
> > and RemoteLoggingServiceUtil custom classes I created that use the
> > slf4j Logger and LogFactory classes.  I know that these classes use
> > java.util.logging as Thomas first mentioned.  If I can get the slf4j
> > bridge configured, I am assuming that I can use the GWT versions of
> > these classes instead of mine.  All I'm trying to figure out now is
> > how to properly configure the slf4j bridge as Thomas indicated I
> > should do.  I have referenced instructions listed at
> >http://www.slf4j.org/legacy.html.
> > Is there anything more I need to do other than including the jul-to-
> > slf4j jar as a dependency?
>
> > On Dec 21, 1:41 pm, Ed  wrote:
> > > Have a look at:
> > > + gwt logging:
> >http://code.google.com/webtoolkit/doc/latest/DevGuideLogging.html
> > > + gwt-log:http://code.google.com/p/gwt-log/
>
> > > 
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Remote Logging

2011-12-21 Thread Ed Bras
Make sure you correctly install the jul bridge: SLF4JBridgeHandler.install()
when your app starts.
See: http://www.slf4j.org/api/org/slf4j/bridge/SLF4JBridgeHandler.html

If that doesn't work, then debug it, and you will quickly find out what
goes wrong.



On Wed, Dec 21, 2011 at 8:54 PM, Keith Bennett
wrote:

> Ed, I have followed all of the guidelines as documented in the first
> link you sent.  Again, I am able to direct the log output to my
> logback-managed files, but only if I use the RemoteLoggingServiceImpl
> and RemoteLoggingServiceUtil custom classes I created that use the
> slf4j Logger and LogFactory classes.  I know that these classes use
> java.util.logging as Thomas first mentioned.  If I can get the slf4j
> bridge configured, I am assuming that I can use the GWT versions of
> these classes instead of mine.  All I'm trying to figure out now is
> how to properly configure the slf4j bridge as Thomas indicated I
> should do.  I have referenced instructions listed at
> http://www.slf4j.org/legacy.html.
> Is there anything more I need to do other than including the jul-to-
> slf4j jar as a dependency?
>
> On Dec 21, 1:41 pm, Ed  wrote:
> > Have a look at:
> > + gwt logging:
> http://code.google.com/webtoolkit/doc/latest/DevGuideLogging.html
> > + gwt-log:http://code.google.com/p/gwt-log/
> >
> > 
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Remote Logging

2011-12-21 Thread Keith Bennett
Ed, I have followed all of the guidelines as documented in the first
link you sent.  Again, I am able to direct the log output to my
logback-managed files, but only if I use the RemoteLoggingServiceImpl
and RemoteLoggingServiceUtil custom classes I created that use the
slf4j Logger and LogFactory classes.  I know that these classes use
java.util.logging as Thomas first mentioned.  If I can get the slf4j
bridge configured, I am assuming that I can use the GWT versions of
these classes instead of mine.  All I'm trying to figure out now is
how to properly configure the slf4j bridge as Thomas indicated I
should do.  I have referenced instructions listed at 
http://www.slf4j.org/legacy.html.
Is there anything more I need to do other than including the jul-to-
slf4j jar as a dependency?

On Dec 21, 1:41 pm, Ed  wrote:
> Have a look at:
> + gwt 
> logging:http://code.google.com/webtoolkit/doc/latest/DevGuideLogging.html
> + gwt-log:http://code.google.com/p/gwt-log/
>
> 

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



Re: Remote Logging

2011-12-21 Thread Ed
Have a look at:
+ gwt logging: 
http://code.google.com/webtoolkit/doc/latest/DevGuideLogging.html
+ gwt-log: http://code.google.com/p/gwt-log/



-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/8g7oo3DhesQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Remote Logging

2011-12-21 Thread Keith Bennett
Thomas, thanks for the feedback.  I included the log4j-over-slf4j, jcl-
over-slf4j, and jul-to-slf4j jars in my project, but I still do not
see anything logged in my logback files.  When you stated that I
needed to configure the slf4j bridge, do you know if there is anything
else I need to do (other than include the jul-to-slf4j jar)?  By the
way, I was able to implement my own versions of the GWT
RemoteLoggingServiceImpl and RemoteLoggingServiceUtil classes that use
the slf4j Logger and LogFactory classes, and with this implementation
I am able to direct log output to the logback files.  I do not want to
have to maintain my own version of these classes, so I am really
wanting to get the slf4j bridge configured correctly.  Thanks for any
advice you have!

On Dec 20, 4:03 pm, Thomas Broyer  wrote:
> GWT only uses java.util.logging, so you have to configure the Slf4j bridge to 
> redirect the logs to logback.

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



Remote Logging

2011-12-20 Thread Thomas Broyer
GWT only uses java.util.logging, so you have to configure the Slf4j bridge to 
redirect the logs to logback.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/TmM_illgupgJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Remote Logging

2011-12-20 Thread Keith Bennett
I have Remote Logging enabled, and any data logged in my GWT client
code only shows up in my Tomcat console.  I have logback configured
and correctly logging data to log files for server code.  Does anyone
know how I can configure GWT remote logging so that my client log data
gets directed to my logback files on the server?

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



Re: GWT remote Logging

2011-10-04 Thread Thomas Broyer
The servlet is already there, you just need to map it in your 
web.xml: 
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/logging/server/RemoteLoggingServiceImpl.html

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/1uWPLYOEj88J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT remote Logging

2011-10-04 Thread Raja Shekhar
Hi

http://code.google.com/webtoolkit/doc/latest/DevGuideLogging.html#Remote_Logging

As per the document, if i wish to have remoteLogging, do i need to write a
servlet class remoteLoggingServlet?

if so, could someone please provide me an example how it will look like?
if not, what do i need to do on the server end? is that servlet already
available?

Thanks,
Raja

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



Re: Remote Logging

2011-09-22 Thread Alexandre Ardhuin
Hi,

If you use the SimpleRemoteLogHandler, you have to add an URL mapping in
your web.xml


remoteLogging

com.google.gwt.logging.server.RemoteLoggingServiceImpl


remoteLogging
/YOUR_MODULE/remote_logging


Alexandre


2011/9/17 Mike 

> I'm attempting to use remote logging as described in
>
> http://code.google.com/webtoolkit/doc/latest/DevGuideLogging.html#Remote_Logging
>
> I'm using a very simple test app based on the Greeting example.  It
> appears to work in the Eclipse hosted mode, but when I deploy to
> Tomcat6 I see nothing in the logs.  A network trace shows that the
> HTTP flows are working as desired, so this leads me to think that it
> somehow a Tomcat configuration.   The Firebug console shows that
> things appear to be working.
>
> I'm trying to a FINE level message.  Do I need some kind of logging
> config file someplace?  Do I need to sure the common loggings library
> is accessible to Tomcat?
>
> Any suggestions will be greatly appreciated.
>
> Thanks,
>
> Mike
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Remote Logging

2011-09-16 Thread Mike
I'm attempting to use remote logging as described in
http://code.google.com/webtoolkit/doc/latest/DevGuideLogging.html#Remote_Logging

I'm using a very simple test app based on the Greeting example.  It
appears to work in the Eclipse hosted mode, but when I deploy to
Tomcat6 I see nothing in the logs.  A network trace shows that the
HTTP flows are working as desired, so this leads me to think that it
somehow a Tomcat configuration.   The Firebug console shows that
things appear to be working.

I'm trying to a FINE level message.  Do I need some kind of logging
config file someplace?  Do I need to sure the common loggings library
is accessible to Tomcat?

Any suggestions will be greatly appreciated.

Thanks,

Mike

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



Re: GWT Remote Logging - Logger Name replaced by logOnServer

2011-08-15 Thread Wooi
I mean I expect something like this,
net.xxx.client.Abc Test
WARNING: blablabla

and I forgot to mention that this happen when I try to log from client
side.
While I try to log from server side, it work fine.
net.xxx.server.AbcDao Test
WARNING: blablabla

Anyone can help?

Thank you.

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



GWT Remote Logging - Logger Name replaced by logOnServer

2011-08-12 Thread Wooi
Below is the message I got from my apache server...
com.google.gwt.logging.server.RemoteLoggingServiceUtil logOnServer
WARNING: blablabla

I try to check RemoteLoggingServiceUtil, seeing while my logger name
is null it will replaced?

This is my code...
private static Logger log = Logger.getLogger("Test");
log.warning("blablabla");

I expect something like...
com.google.gwt.logging.server.RemoteLoggingServiceUtil Test
WARNING: blablabla

Any advice?

Thank you in advance.

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



Re: GWT remote logging

2011-05-25 Thread Dave
Adding a mapping to my web.xml made it work.  Thanks a bunch!

On May 25, 1:53 am, Alexandre Ardhuin 
wrote:
> Have you add an URL mapping in your web.xml ?
>
>     
>         remoteLogging
>
> com.google.gwt.logging.server.RemoteLoggingServiceImpl let-class>
>     
>     
>         remoteLogging
>         /YOUR_MODULE/remote_logging
>     
>
> Alexandre
>
> 2011/5/24 Dave 
>
>
>
>
>
>
>
> > I'm trying to Log a message to a server log.  I found these
> > instructions:
>
> >http://code.google.com/webtoolkit/doc/latest/DevGuideLogging.html#Rem...
>
> > In my GWT XML I have
> > 
> > 
> > my code is:
> > SimpleRemoteLogHandler remoteLog = new SimpleRemoteLogHandler();
> > remoteLog.publish(new LogRecord(Level.INFO, "test GWT log"));
>
> > I'm sure that I'm missing a simple setup step.
>
> > I get the error message.
> > WireActivityLogger SEVERE: Remote logging failed:
> > com.google.gwt.user.client.rpc.StatusCodeException: 0
> >   at
>
> > com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceiv 
> > ed(RequestCallbackAdapter.java:
> > 192)
> >   at
> > com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
> > 287)
> >   at com.google.gwt.http.client.RequestBuilder
> > $1.onReadyStateChange(RequestBuilder.java:395)
> >   at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
> >   at
>
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
> > l.java:
> > 25)
> >   at java.lang.reflect.Method.invoke(Method.java:597)
> >   at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
> > 103)
> >   at
> > com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
> >   at
>
> > com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav 
> > a:
> > 157)
> >   at
>
> > com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingFo 
> > rReturn(BrowserChannelServer.java:
> > 326)
> >   at
>
> > com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann 
> > elServer.java:
> > 207)
> >   at
> > com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
> > 126)
> >   at
> > com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
> > 561)
> >   at
> > com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
> > 269)
> >   at
>
> > com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j 
> > ava:
> > 91)
> >   at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
> >   at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)
>
> > Thanks for your assistance,
>
> > Dave
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: GWT remote logging

2011-05-24 Thread Alexandre Ardhuin
Have you add an URL mapping in your web.xml ?


remoteLogging

com.google.gwt.logging.server.RemoteLoggingServiceImpl


remoteLogging
/YOUR_MODULE/remote_logging


Alexandre


2011/5/24 Dave 

> I'm trying to Log a message to a server log.  I found these
> instructions:
>
> http://code.google.com/webtoolkit/doc/latest/DevGuideLogging.html#Remote_Logging
>
> In my GWT XML I have
> 
>  >
>
> my code is:
> SimpleRemoteLogHandler remoteLog = new SimpleRemoteLogHandler();
> remoteLog.publish(new LogRecord(Level.INFO, "test GWT log"));
>
> I'm sure that I'm missing a simple setup step.
>
> I get the error message.
> WireActivityLogger SEVERE: Remote logging failed:
> com.google.gwt.user.client.rpc.StatusCodeException: 0
>   at
>
> com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:
> 192)
>   at
> com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
> 287)
>   at com.google.gwt.http.client.RequestBuilder
> $1.onReadyStateChange(RequestBuilder.java:395)
>   at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
>   at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
> 25)
>   at java.lang.reflect.Method.invoke(Method.java:597)
>   at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
> 103)
>   at
> com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
>   at
>
> com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
> 157)
>   at
>
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
> 326)
>   at
>
> com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
> 207)
>   at
> com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
> 126)
>   at
> com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
> 561)
>   at
> com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
> 269)
>   at
>
> com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
> 91)
>   at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
>   at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)
>
>
> Thanks for your assistance,
>
> Dave
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



GWT remote logging

2011-05-24 Thread Dave
I'm trying to Log a message to a server log.  I found these
instructions:
http://code.google.com/webtoolkit/doc/latest/DevGuideLogging.html#Remote_Logging

In my GWT XML I have



my code is:
SimpleRemoteLogHandler remoteLog = new SimpleRemoteLogHandler();
remoteLog.publish(new LogRecord(Level.INFO, "test GWT log"));

I'm sure that I'm missing a simple setup step.

I get the error message.
WireActivityLogger SEVERE: Remote logging failed:
com.google.gwt.user.client.rpc.StatusCodeException: 0
   at
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:
192)
   at
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
287)
   at com.google.gwt.http.client.RequestBuilder
$1.onReadyStateChange(RequestBuilder.java:395)
   at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
   at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
   at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
157)
   at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
326)
   at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
207)
   at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
126)
   at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
   at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
   at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
   at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
   at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)


Thanks for your assistance,

Dave

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