Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 16857 invoked by uid 500); 31 Oct 2002 01:27:54 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 16846 invoked from network); 31 Oct 2002 01:27:54 -0000 Date: Wed, 30 Oct 2002 19:28:00 -0600 (CST) From: Tony Collen X-Sender: To: Subject: Re: Question about logging In-Reply-To: <3DC07A6E.6080601@verizon.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Wed, 30 Oct 2002, Vadim Gritsenko wrote: > Where do you see it? > > > > .. Am I looking > >in the right place for referrer info, or am I way off? > > > > You need referer header which browser sents. Usually this info logged by > web server or server engine. You can either create your own log (action > logging value of the header) or use existing log of the web server or > servlet engine. > > Cocoon by itself do not write access log similar to log of the web > server, because cocoon does not tries to replace web server. Vadim, I eventually tracked down that the referring URL *is* given in core.log, but only when the log level is set to debug in logkit.xconf. The thing that threw me off in this example was that for some reason the referrer was simply not being sent. I tested this by tailing the log and reloading a few times and noticed that the referrer was being sent. I poked around with my ideas of somehow pulling out the referring URL, and started looking at writing a ReferringURLAction. Off list, I emailed Christian Haul regarding some ideas, and he pointed out to me that there's the request InputModule which can let me access the referring url (or any header) by name. I guess it's time to add docs to the Wiki... On a side note, it would be nice to have some sort of simple access logs that followed the "tradition" Apache HTTPD-style logs. So much time, so little documentation, I guess :) Thanks for your help, Tony Tony Collen -- tc@socsci.umn.edu College of Liberal Arts University of Minnesota, Minneapolis, West Bank --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org