users@glassfish.java.net

Re: Writting cookie.value into access log

From: <glassfish_at_javadesktop.org>
Date: Wed, 23 Jan 2008 17:42:36 PST

Yes, you're updating the correct domain.xml element.

However, you need to upgrade to GlassFish v2 (9.1), where the following new access-log format tokens were added:

  %attribute.<name>%
  -> Logs the value of the request attribute with the given name,
      or NULL-ATTRIBUTE-<name>

  %cookie%
  -> Logs the name and value of the first request cookie, or NULL-COOKIE

  %cookies%
  -> Logs the names and values of all request cookies (separated by semicolon),
      or NULL-COOKIES

  %cookie.<name>%
  -> Logs the value of the first request cookie with the given name,
      or NULL-COOKIE-<name>

  %cookies.<name>%
  -> Logs the values of all request cookies with the given name
      (separated by semicolon), or NULL-COOKIES-<name>

  %headers.<name>%
  -> Logs the values of all request headers with the given name
      (separated by semicolon), or NULL-HEADERS-<name>

Jan
[Message sent by forum member 'jluehe' (jluehe)]

http://forums.java.net/jive/thread.jspa?messageID=255510