It would be great if there were a directive for writing a string of my choice to a log file, such as:
[code]
location ~ /some/path/.*/foo {
print_to_log "In new rule I'm working on"
if ($something ~ ^reg(.*)exp$) {
print_to_log "$something matched; captured $1"
}
...
}
[/code]
I've read that nginx can be compiled in debug mode, but that's a really heavy solution. I generally want to write rules and iterate on them quickly.
Igor, thanks for all your excellent work on nginx!
Jared