What I have done for wfs on trunk is essentially what Chris suggests. The result is a decently formatted summary of the properties of the request object. Example:
INFO:
Request: getFeature
handle = null
service = WFS
version = 1.1.0
query = [net.opengis.wfs.impl.QueryTypeImpl@anonymised.com (group: null, propertyName: null, function: null, filter: null, sortBy: null, featureVersion: null, handle: null, srsName: null, typeName: [{http://www.opengeospatial.net/cite\}RoadSegments])]
maxFeatures = null
outputFormat = GML2
resultType = results
traverseXlinkDepth = null
traverseXlinkExpiry = null
Result:
lockId = null
timeStamp = java.util.GregorianCalendar[time=1170865498792,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="Canada/Pacific",offset=-28800000,dstSavings=3600000,useDaylight=true,transitions=189,lastRule=java.util.SimpleTimeZone[id=Canada/Pacific,offset=-28800000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=3,startMonth=3,startDay=1,startDayOfWeek=1,startTime=7200000,startTimeMode=0,endMode=2,endMonth=9,endDay=-1,endDayOfWeek=1,endTime=7200000,endTimeMode=0]],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2007,MONTH=1,WEEK_OF_YEAR=6,WEEK_OF_MONTH=2,DAY_OF_MONTH=7,DAY_OF_YEAR=38,DAY_OF_WEEK=4,DAY_OF_WEEK_IN_MONTH=1,AM_PM=0,HOUR=8,HOUR_OF_DAY=8,MINUTE=24,SECOND=58,MILLISECOND=792,ZONE_OFFSET=-28800000,DST_OFFSET=0]
numberOfFeatures = 5
feature = [org.geotools.data.DefaultFeatureResults@anonymised.com]
I also did it in an aspect so I didn't have to mess up the dispatcher or the wfs service with messy logging code.
Chris Holmes wrote:
I'm +1. I think some code may already be there at FINE, but yeah, I agree it should be more prominent.
One way to do it might be to just make a .toString() method for GetMapRequest - I think when WFS comes in it gives you a nicely formatted summary of the request.
Chris
Andrea Aime wrote:
Hi,
I'm not very satisfied with current geoserver request logging:
[INFO] org.vfny.geoserver.servlets.AbstractService - handling request: org.vfny.geoserver.wms.requests.GetMapRequest@anonymised.com [INFO] org.vfny.geoserver.servlets.AbstractService - Service handled
Hum, not very informative. I'd prefer to see the actual request.
Now, since the actual request may be (very) long, we could limit
logging to the first, say, 1024 or 2048 characters in it
Would you like it?
Cheers
Andrea
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
!DSPAM:1004,45c9fe24312261527717022!
------------------------------------------------------------------------
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
!DSPAM:1004,45c9fe24312261527717022!
--
Justin Deoliveira
jdeolive@anonymised.com
The Open Planning Project
http://topp.openplans.org