Server Side logging configuration, dev mode

61 prikaz
Preskoči na prvu nepročitanu poruku

Flying-w

nepročitano,
23. srp 2013. 12:53:0723. 07. 2013.
u google-we...@googlegroups.com
In my GWT server side, I'm using java.util.logging.Logger for logging.  When I deploy to tomcat I can configure logging through WEB_INF/classes/logging.properties and that works fine.  However in eclipse dev mode, how do I configure logging when jetty is the (built in) webserver?

Thanks
Simon

Thomas Broyer

nepročitano,
24. srp 2013. 04:15:0724. 07. 2013.
u google-we...@googlegroups.com

On Tuesday, July 23, 2013 6:53:07 PM UTC+2, Flying-w wrote:
In my GWT server side, I'm using java.util.logging.Logger for logging.  When I deploy to tomcat I can configure logging through WEB_INF/classes/logging.properties and that works fine.  However in eclipse dev mode, how do I configure logging when jetty is the (built in) webserver?

In DevMode, AFAICT, it's the DevMode that logs, not the embedded Jetty (in other words, Jetty –at least in this configuration– does not do anything special). That means you'll configure it the "standard" way: either in a global $JAVA_HOME/lib/logging.properties or passing the path to your logging.properties as a java.util.logging.config.file system property; see http://docs.oracle.com/javase/7/docs/api/java/util/logging/LogManager.html

Flying-w

nepročitano,
24. srp 2013. 05:46:0624. 07. 2013.
u google-we...@googlegroups.com
thanks, that's the answer. 
Odgovori svima
Odgovori autoru
Proslijedi
0 novih poruka