In managed code you can use the Response.AppendToLog method. This method will append data to the cs-uri-stem field -- the total length is up to 4100 characters (undocumented). If you exceed that limit, then the value that would have been logged is replaced with "..."

For instance, adding something like this to your Global.asax file should do the trick (C#):