Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6167123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:27:26+00:00 2026-05-23T22:27:26+00:00

I’m using GWT-log in order to write log messages. for now, I can see

  • 0

I’m using GWT-log in order to write log messages. for now, I can see the logs in console and in a catalina file (in my tomcat) I want to write the logs to specific file (which I will define). How can I do that?

I am using GWT romote-logging:

<inherits name="com.google.gwt.logging.Logging"/>
<set-property name="gwt.logging.simpleRemoteHandler" value="ENABLED" />

in My web.xml:

<servlet>
   <servlet-name>remoteLogging</servlet-name>
   <servlet-class>com.google.gwt.logging.server.RemoteLoggingServiceImpl</servlet-class>    
</servlet>
<servlet-mapping>
   <servlet-name>remoteLogging</servlet-name>
   <url-pattern>/MyModule/remote_logging</url-pattern>
</servlet-mapping>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T22:27:26+00:00Added an answer on May 23, 2026 at 10:27 pm

    I have tried configuring logging.properties to write to a file, but haven’t had any luck.

    <servlet>
      <servlet-name>remoteLoggingServlet</servlet-name>
      <servlet-class>com.google.gwt.logging.server.RemoteLoggingServiceImpl</servlet-class>
      <init-param>
          <param-name>java.util.logging.config.file</param-name>
          <param-value>/WEB-INF/classes/logging.properties</param-value>
      </init-param>
    </servlet>
    
    <servlet-mapping>
      <servlet-name>remoteLoggingServlet</servlet-name>
      <url-pattern>/my.app.path/remote_logging</url-pattern>
    </servlet-mapping>
    

    Also tried configuring at the root of my project as well without success.
    I am wondering if this is because java.util.logging.FileHandler is not among the emulated classes?

    http://code.google.com/intl/es-ES/webtoolkit/doc/latest/DevGuideLogging.html#Emulated_And_Non_Emulated

    This would be a shame to be able to get so close but not be able to track these types of errors in production.

    That doesn’t make sense to me, however, since under the covers the remote logging service appears to just use vanilla java.util.Logging:

    http://www.google.com/codesearch#A1edwVHBClQ/user/src/com/google/gwt/logging/server/RemoteLoggingServiceUtil.java&is_navigation=1

    ———Update————

    For what it’s worth, I ended up taking the RemoteLoggingServiceUtil and RemoteLoggingServiceImpl classes and implementing them myself, and swapping them to use log4j instead.

    This resolved the issue completely and I can now configure this to log to a server side log.

    This may be specific to GWT logging, or it may be my lack of experience configuring java.util.Logging, but this ended up being much cleaner since I use log4j everywhere else in the project anyway, so I can have a single log file.

    All this required was changing the web.config remote logging servlet to point to my own file:

    <servlet>
      <servlet-name>remoteLoggingServlet</servlet-name>
      <servlet-class>my.class.path.RemoteLoggingServiceImpl</servlet-class>
    </servlet>
    
    <servlet-mapping>
      <servlet-name>remoteLoggingServlet</servlet-name>
      <url-pattern>/edu.wisc.nelson.wolfhuntingsimulator.WolfHuntingSimulator/remote_logging</url-pattern>
    </servlet-mapping>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I have a jquery bug and I've been looking for hours now, I can't
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.