# Logging a variable in a location?

**URL:** <https://www.ruby-forum.com/t/logging-a-variable-in-a-location/201557>\
**Category:** NGINX\
**Created:** [January 10, 2011, 6:27pm UTC](https://www.ruby-forum.com/t/logging-a-variable-in-a-location/201557 "2011-01-10T18:27:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [January 10, 2011, 6:27pm UTC](https://www.ruby-forum.com/t/logging-a-variable-in-a-location/201557/1 "2011-01-10T18:27:02Z")

</div>

Is there a way to log arbitrary text and the value of a variable in a  
location directive? If so, how?

e.g.

The URI is $uri

–

* * *

Robert La Ferla  
VP Engineering  
OMS SafeHarbor

This message (and any attachments) contains confidential information and  
is protected by law. If you are not the intended recipient, you should  
delete this message and are hereby notified that any disclosure,  
copying, distribution, or the taking of any action based on this  
message, is strictly prohibited.
