Tuesday, March 28, 2006

Quick (Apache) Logging Hack

I needed to know if a browser was sending us the expected JSESSIONID cookie. So, rather than hack our code (or, heaven forbid, add logging statements), I simply added a custom log like:

CustomLog logs/cookies_log "%t %r %{JSESSIONID}C"

All the % options can be found documented here.

No comments:

Post a Comment