[PATCH] Escape characters in log files
manlio_perillo at libero.it
Sun Jan 20 15:18:24 MSK 2008
David Phillips ha scritto:
> (re-sending with the patch actually attached)
> The attached patch escapes characters in log file entries. It works
> similar to Apache:
> * Any non-printable characters (<= 31 or >= 127) or pipe characters
> are escaped using \xhh
> * Whitespace (tab, newline, vertical tab, form feed, carriage return)
> characters use C-style escapes
> * Double quotes or backslashes are prefixed with a backslashes
> Pipes are escaped to allow for easy handling of raw logs when using
> pipes as the delimiter: you can split on a pipe without any parsing.
Thanlks for the patch.
I suggest you to add a new directive to enable/disable escaping.
One last thing: can you please add this patch to
http://wiki.codemongers.com/NginxModules, in the "Third-Party Nginx
More information about the nginx