[JIRA-OS] Commented: (CLK-9) Suggestions from Brent Beardsley

[email protected]
Newsgroups gmane.comp.java.open-symphony.cvs
Message-ID <[email protected]>
The following comment has been added to this issue:

     Author: Mathias Bogaert
    Created: Tue, 2 Sep 2003 4:18 AM
       Body:
Fixed 1) and 2) in CVS.
---------------------------------------------------------------------
View the issue:

  http://jira.opensymphony.com/secure/ViewIssue.jspa?key=CLK-9


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: CLK-9
    Summary: Suggestions from Brent Beardsley
       Type: New Feature

     Status: Assigned
   Priority: Major

    Project: Clickstream
   Versions:
             .6

   Assignee: Patrick Lightbody
   Reporter: Patrick Lightbody

    Created: Thu, 7 Nov 2002 8:20 PM
    Updated: Thu, 7 Nov 2002 8:20 PM

Description:
Hi Patrick,

Here's a few things I'd like to see in Clickstream:

1) timestamp in ClickstreamRequest - so I can figure
out how long the user was on each page.  In function
addRequest file Clickstream.java you could call:

clickstream.add(new ClickstreamRequest(request,
lastRequest));


2) attributes in Clickstream so I can keep things like
userId and whatever else I want in there because the
HttpSession has already been invalidated by the time
the ClickstreamLogger is called so I can't map from
session to my internal user ids. For example:

clickstream.getAttribute("userId") would give me a
string id for the user associated with the session
associated with this clickstream.

public void setAttribute(String name, Object value);
public Object getAttribute(String name);


3) try...catch around the log call in
ClickstreamListener like:

try {
  ClickstreamLoggerFactory.getLogger().log(stream);
} catch (Exception ex) {
  log.error(ex);
} finally {
  clickstreams.remove(session.getId());
}

so other listeners will function and it will remove it
from the clickstreams list regardless of the log
function failing.

4) switch over to Apache Commons Logging api.



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.opensymphony.com/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.