Skip to content
This repository has been archived by the owner on Dec 8, 2017. It is now read-only.

log_url is not set for remote logging #83

Open
confile opened this issue Jan 30, 2016 · 8 comments
Open

log_url is not set for remote logging #83

confile opened this issue Jan 30, 2016 · 8 comments

Comments

@confile
Copy link

confile commented Jan 30, 2016

In my web.xml I do:

    <servlet>   
      <servlet-name>gwt-log-remote-logger-servlet</servlet-name>
      <servlet-class>com.allen_sauer.gwt.log.server.RemoteLoggerServlet</servlet-class>
    </servlet>
    <servlet-mapping>
      <servlet-name>gwt-log-remote-logger-servlet</servlet-name>
      <url-pattern>/gwt-logging</url-pattern>
    </servlet-mapping>

On the client side for I do in gwt.xml:

    <set-property name="gwt.logging.logLevel" value="INFO" />
    <set-property name="gwt.logging.enabled" value="TRUE" />
       <set-property name="gwt.logging.simpleRemoteHandler" value="DISABLED" /> 
    <inherits name="com.allen_sauer.gwt.log.gwt-log-ERROR" />
    <extend-property name="log_level" values="DEBUG"/>
    <inherits name="com.allen_sauer.gwt.log.gwt-log-RemoteLogger" />
    <set-property name="log_DivLogger" value="DISABLED" />
    <set-configuration-property name="log_url" value="http://www.example.com/gwt-logging" />

But still it tries to log to: http://www.example.com/gwt-log.

@confile
Copy link
Author

confile commented Feb 4, 2016

@fredsa Do you have any idea on that issue?

@fredsa
Copy link
Owner

fredsa commented Feb 4, 2016

Michael,

Your best bet is to read through
https://github.com/fredsa/gwt-log/wiki/GettingStarted#enable-the-remote-logging-option-disabled-by-default

Then, look at the server log to see how the path is being interpreted.

On Thu, Feb 4, 2016 at 5:55 AM, Michael Gorski [email protected]
wrote:

@fredsa https://github.com/fredsa Do you have any idea on that issue?


Reply to this email directly or view it on GitHub
#83 (comment).

Fred Sauer
[email protected]

@confile
Copy link
Author

confile commented Feb 4, 2016

I read this but still I do not see the error. The client tries to log to: ttp://www.example.com/gwt-log

What did I wrong?

@fredsa
Copy link
Owner

fredsa commented Feb 4, 2016

You can also check Chrome Dev Tools and look at the network traffic, to
make sure your HTTP request from the client is actually be sent to the
server. Of course, the request should appear in the server request logs as
well. After that, it's a matter of making sure the request is being routed
to the servlet.

On Thu, Feb 4, 2016 at 12:49 PM, Michael Gorski [email protected]
wrote:

I read this but still I do not see the error. The client tries to log to:
ttp://www.example.com/gwt-log

What did I wrong?


Reply to this email directly or view it on GitHub
#83 (comment).

Fred Sauer
[email protected]

@confile
Copy link
Author

confile commented Feb 5, 2016

I checked the Chrome Dev Tools of course. The problem is on the client side it still sends the request to
http://www.example.com/gwt-log no matter what URL I put into

    <set-configuration-property name="log_url" value="http://www.example.com/gwt-logging" />

Are you sure that is not a bug?

@fredsa
Copy link
Owner

fredsa commented Feb 5, 2016

Always possible of course. Can you just update your web.xml to listed on
/gwt-log instead of /gwt-logging to see if things then work?

On Thu, Feb 4, 2016 at 11:42 PM, Michael Gorski [email protected]
wrote:

I checked the Chrome Dev Tools of course. The problem is on the client
side it still sends the request to
http://www.example.com/gwt-log no matter what URL I put into

<set-configuration-property name="log_url" value="http://www.example.com/gwt-logging" />

Are you sure that is not a bug?


Reply to this email directly or view it on GitHub
#83 (comment).

Fred Sauer
[email protected]

@confile
Copy link
Author

confile commented Feb 6, 2016

@fredsa Yes it work with /gwt-log the problem still exist that I cannot change the path on the client side.

Do you have any idea or workaround for this?
Thanks for help.

@fredsa
Copy link
Owner

fredsa commented Feb 7, 2016

There's an example working configuration in the client server demo:

https://github.com/fredsa/gwt-log/blob/master/Log/clientserverdemo/com/allen_sauer/gwt/log/clientserverdemo/LogClientServerDemo.gwt.xml

That's the code for the demo: http://gwt-log.appspot.com/

On Sat, Feb 6, 2016 at 5:32 AM, Michael Gorski [email protected]
wrote:

@fredsa https://github.com/fredsa Yes it work with /gwt-logthe problem
still exist that I cannot change the path on the client side.

Do you have any idea or workaround for this?
Thanks for help.


Reply to this email directly or view it on GitHub
#83 (comment).

Fred Sauer
[email protected]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants