|
Re: CustomRequestLog.java: msg#00035java.jetty.general
Chris, Firstly: COOL! Secondly: comments in-line. Chris Forkin wrote: Done sofar: MMmm you will have to add some access methods to get this - please add them and then you can send the patches. Firstly you need to access response.getHttpConnection()._persistent to see if the connection is persistent or will be closed. I don't think we can generate X at the moment, as I don't log failed requests in the request log (only in the jetty log). If you think X is really needed I can look at making a change, where it would pass in a null response if handling failed. %...{Foobar}e: use System.getProperty("Foobar") or ignore well that is not really an environment variable - but I guess it is the equivalent for java. %...f: don't know response.getHttpContext().getResource(request.getPath().substring(response.getHttpContext().getContextPath().length())); may need some null pointer protection in all that. may also be a better way... %...h: use request.getRemoteHost() request.getUserPrincipal().toString() %...m: use request.getMethod() Thread.currentThread().getName() %...q: use request.getQuery() request.getRequestLine() %...s: don't know use response.getStatus()?? Not sure what this means??? %...t: use request.getTimeStamp() and java.util.Calendar et.al. maybe the local address from InetAddress? If anybody could assist and let me know if any of my assumptions are wrong You write the code you post the code we use the code. Main choice is if you want to retain copyright yourself (in that case use your own package name) or assign copyright to Mort Bay (and use org.mortbay.http package) cheers ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: ThreadPool name bug?, Ben Walding |
|---|---|
| Next by Date: | Accessing the Jetty launcher via Eclipse, Reggie |
| Previous by Thread: | CustomRequestLog.java, Chris Forkin |
| Next by Thread: | Re: ThreadPool name bug?, Ben Walding |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |