saokar / urlrewritefilter

Automatically exported from code.google.com/p/urlrewritefilter
Other
0 stars 0 forks source link

Log INFO when a rule triggers some action #70

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We're planning to use URF to redirect old URLs to their new locations, so that 
people who have old bookmarks get sent to the right place. In order to know how 
often people use old bookmarks, it would be nice if URF could log when a rule 
matches, which URL the user came in with, which URL he ended up with and what 
action was taken.

Currently, you can set logging to DEBUG, and by piecing together several log 
lines you can get the information. It would be nice if URF could output a 
single logline with all the information at loglevel INFO for instance.

What version of the product are you using? On what operating system?
3.2.0

Original issue reported on code.google.com by morte...@ifi.uio.no on 10 Jun 2010 at 10:26

GoogleCodeExporter commented 9 years ago
I couldn't figure out how to make this an Enhancement instead of a Defect.

Original comment by morte...@ifi.uio.no on 10 Jun 2010 at 10:27

GoogleCodeExporter commented 9 years ago
Please discuss issues first on the mailing list before filing tickets.

These are application level logs and URF cannot (rather should not) be doing 
those. The simplest solution in your case would be to add an extra parameter in 
the URL (or a session attribute, or a request attribute etc) to identify if the 
incoming request was a bookmarked URL. You can use <set> tags to your advantage 
(http://urlrewritefilter.googlecode.com/svn/trunk/src/doc/manual/3.2/index.html#
set)

Closing this ticket.

Original comment by avl...@gmail.com on 10 Jun 2010 at 12:18