Nginx rewriteのログを表示する

どうもNginxはデフォルトだとrewrite関連のログを吐いてくれないみたいなので調べた。
rewrite_logをonにすれば表示することができるみたい。デフォルトではoff

Syntax: 	rewrite_log on | off;
Default: 	rewrite_log off;
Context: 	http, server, location, if
Module ngx_http_rewrite_module

その下にerror_logをnoticeレベルに設定すると結果が見れるよと書いてあるのでerror_logのログレベルをnoticeにする。

Enables or disables logging of ngx_http_rewrite_module module directives processing results into the error_log at the notice level.

Module ngx_http_rewrite_module
error_log file notice;