Community
Participate
Working Groups
When using jetty-client or websocket-client on android, it is very difficult to setup jetty Log as it requires System properties to configure itself. (system properties are not a viable way to setup and configure anything on Android)
The techniques established by i-jetty project helps. Using the AndroidLog from i-jetty and some pre-emptive setting of the Log before Jetty initializes lets Jetty log be setup appropriately. AndroidLog from i-jetty source (ASL/EPL Licensed) http://code.google.com/p/i-jetty/source/browse/trunk/i-jetty/i-jetty-server/src/main/java/org/mortbay/ijetty/log/AndroidLog.java The following bridging code should be placed in your Activity#onCreate() method // Bridge Jetty Logging to Android Logging System.setProperty("org.eclipse.jetty.util.log.class",AndroidLog.class.getName()); org.eclipse.jetty.util.log.Log.setLog(new AndroidLog());