Thanks, Funkman, for sending over a response, but I may need a little more
info (from you or anyone!). Could you give an rough example how I code
this into my log pattern if my object --does-- have toString()
implemented? I thought about something like this being possible, but
was not sure how to code it into the log pattern.
There does not seem to be much material about this particular subject
anyplace!
Regards,
MitchellT
Date: Thu, 29 Jul 2004 20:21:30 -0400
From: "Tim Funk" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Subject: Re: AccessLogValve question: how to correctly log HttpSession
attribute
You'll need implement toString() for your Promotion object.
I was able to get the Webtrends 4 to read the output from the access log
valve. (Fortunetly for me I haven't used webtrends since.)
-Tim
Mitchell Teixeira wrote:
> Hello, I have a question related to capturing data in the Tomcat access
> logs. I'm using Tomcat 5.0.19 with the Sun 1.4.2_03 SDK on Windows
2000.
>
> According to the documentation for the Tomcat AccessLogValve component,
I
> should be able to capture attributes in the HttpSession into my access
> logs. I was able to get some information into my logs following the
> syntax
> ""%{promotion}s%quot;". Using that syntax, I get what appears to
be
> the attribute object id in my logs: "[EMAIL PROTECTED]". I want
to
> see actual >>value<< of this attribute instead! What is the correct
> syntax to the get the value of the attribute? In my case, it should be a
> five digit number like "12345". While I'm glad to get this far, its
> still
> not close enough. Is there more doc on this topic anyplace?
>
> Also, is anyone on the list using Webtrends 7? If so, what logging
> "pattern" are you using in your server.xml? While it appears to be in
the
> logs, the Search Engine data is not appearing in our Webtrends reports.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]