mercredi 26 mars 2014

GWT remote logging going to System.out instead of log file


Vote count:

0




I have setup gwt remote logging based on the gwt documentation, however my logs are going to System.out instead of being written to a log file.


My gwt module looks like:



<module rename-to='ezdappserver'>

<inherits name="com.google.gwt.logging.Logging"/>
<set-property name="gwt.logging.simpleRemoteHandler" value="ENABLED" />
<set-property name="gwt.logging.logLevel" value="FINEST"/>
<set-property name="gwt.logging.enabled" value="TRUE"/>
<set-property name="gwt.logging.consoleHandler" value="ENABLED" />
<set-property name="gwt.logging.popupHandler" value="DISABLED" />
</module>


My servlet definition is setup like:



<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>/ezdappserver/remote_logging</url-pattern>
</servlet-mapping>


When an error is logged I see output in my console like so:



Mar 26, 2014 2:10:36 PM com.google.gwt.logging.server.RemoteLoggingServiceUtil logOnServer
SEVERE: Exception caught: (NotFoundError)
....Rest of error....


I was expecting this output to be written to a log file somewhere in my war. Also, I would really like to be able to specify where this file is located, however I haven't been able to find any documentation on that either.


Any help would be much appreciated.


NOTE: I am not running this through dev mode, this is with compiled code.


Thanks!



asked 37 secs ago






Aucun commentaire:

Enregistrer un commentaire