~ubuntu-branches/ubuntu/quantal/nginx/quantal-updates

« back to all changes in this revision

Viewing changes to src/http/modules/ngx_http_log_module.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Lustfield, Micheal Lustfield, Kartik Mistry
  • Date: 2011-03-03 23:39:07 UTC
  • mfrom: (4.2.29 sid)
  • Revision ID: james.westby@ubuntu.com-20110303233907-y48yifhfnn5qjuxz
Tags: 0.8.54-4
[Micheal Lustfield]
* debian/nginx-{full,light,extras}.default:
  + Added comment about alternative to ULIMIT.
* debian/nginx-{full,light,extras}.init.d:
  + Added quotes around a test variable. (Closes: #610946, LP: #699736)
* debian/patches/609343-log-time-iso8601.diff:
  + Added patch to add $time_iso8601 variable to logs. (Closes: #609343)
* Clean up old logrotate files. (Closes: #608983, Closes: #610289)
  + Added Files:
    - debian/nginx-common.preinst
  + Modified Files:
    - debian/rules
  + Moved debian/nginx-common.logrotate to debian/logrotate.
* Added common files to nginx-common package. (Closes: #610290)
  + Removed Files:
    - debian/nginx-full.dirs
    - debian/nginx-light.dirs
    - debian/nginx-full.install
    - debian/nginx-light.install
    - debian/nginx-extras.install
    - debian/nginx.*
  + Added Files:
    - debian/nginx-common.default
    - debian/nginx-common.dirs
    - debian/nginx-common.init.d
    - debian/nginx-common.install
    - debian/nginx-common.manpages
    - debian/logrotate
  + Modified Files:
    - debian/nginx-extras.dirs
    - debian/control
    - debian/rules
* debian/nginx-*.install: (Closes: #609797)
  + Removed NEWS.Debian from nginx-{full,light,extras}.install.
  + Added NEWS.Debian to nginx-common.install.
* nginx-common.postinst:
  + Enforce /var/log/nginx mode and user:group. (Closes: #610983)
  + Enforce /var/log/nginx/*.log mode and user:group. (Closes: #612832)
* debian/rules:
  + Added --with-file-aio to nginx-extras. (Closes: #613175)
  + Removed split clients and user id modules from nginx-light.
* debian/conf/sites-available/default:
  + Fixed a minor typo ( s/Quickstart/QuickStart/ ). (Closes: #613355)
* debian/conf/mime.types:
  + Changed xml type to application/xhtml+xml. (Closes: #613851)
* debian/help/docs/fcgiwrap:
  + Removed Ubuntu specific line in docs. (Closes: #614987)
* debian/conf/sites-available/default:
  + Fixed a pointer to a file. (Closes: #614980)

[Kartik Mistry]
* debian/*.lintian-overrides:
  + Add Lintian overrides for nginx man page. We've manpage in nginx-common
    binary

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
    ngx_http_log_op_t *op);
84
84
static u_char *ngx_http_log_time(ngx_http_request_t *r, u_char *buf,
85
85
    ngx_http_log_op_t *op);
 
86
static u_char *ngx_http_log_iso8601(ngx_http_request_t *r, u_char *buf,
 
87
    ngx_http_log_op_t *op);
86
88
static u_char *ngx_http_log_msec(ngx_http_request_t *r, u_char *buf,
87
89
    ngx_http_log_op_t *op);
88
90
static u_char *ngx_http_log_request_time(ngx_http_request_t *r, u_char *buf,
193
195
    { ngx_string("pipe"), 1, ngx_http_log_pipe },
194
196
    { ngx_string("time_local"), sizeof("28/Sep/1970:12:00:00 +0600") - 1,
195
197
                          ngx_http_log_time },
 
198
    { ngx_string("time_iso8601"), sizeof("1970-09-28T00:00:00+06:00") - 1,
 
199
                          ngx_http_log_iso8601 },
196
200
    { ngx_string("msec"), NGX_TIME_T_LEN + 4, ngx_http_log_msec },
197
201
    { ngx_string("request_time"), NGX_TIME_T_LEN + 4,
198
202
                          ngx_http_log_request_time },
510
514
                      ngx_cached_http_log_time.len);
511
515
}
512
516
 
 
517
static u_char *
 
518
ngx_http_log_iso8601(ngx_http_request_t *r, u_char *buf, ngx_http_log_op_t *op)
 
519
{
 
520
    return ngx_cpymem(buf, ngx_cached_http_log_iso8601.data,
 
521
                      ngx_cached_http_log_iso8601.len);
 
522
}
513
523
 
514
524
static u_char *
515
525
ngx_http_log_msec(ngx_http_request_t *r, u_char *buf, ngx_http_log_op_t *op)