Looking for the latest version? Download peppet-2.0.tar.gz (44.9 kB)
Home / nginx
Name Modified Size Downloads / Week Status
Parent folder
Totals: 3 Items   22.6 kB 3
nginx-time_custom-README 2009-08-25 1.1 kB 11 weekly downloads
nginx-time_custom-2009082402.patch 2009-08-25 11.8 kB 11 weekly downloads
nginx-time_custom-2009082401.patch 2009-08-25 9.7 kB 11 weekly downloads
This patch was released upstream to the nginx team at: http://forum.nginx.org/read.php?2,5137 This patch is made available under the same license used for nginx, the BSD license. The patch implements the following: For every named log format there may be defined a custom timestamp format that will be passed to strftime() for expansion. This string is accessed via $time_custom instead of $time_local. (It defaults to expanding to an empty string unless the user specifies a time_custom_format value for the named log format.) Inside the custom format one extra variable expansion is supported: the use of "$ms" will substitute a 3-digit milliseconds value at that point. For example: log_format main '$remote_addr - $remote_user [$time_custom] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; time_custom_format main '%d/%b/%Y:%H:%M:%S.$ms %z'; That defines a log format that is like $time_local except that it gets millisecond logging resolution. Obviously, the string doesn't need to be quite so similar to the default, but you get the idea.
Source: nginx-time_custom-README, updated 2009-08-25