aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_log_module.c
Commit message (Collapse)AuthorAge
* Access log: support for disabling escaping (ticket #1450).Vladimir Homutov2018-03-01
| | | | | Based on patches by Johannes Baiter <johannes.baiter@bsb-muenchen.de> and Calin Don.
* Fixed ngx_open_cached_file() error handling.Sergey Kandaurov2017-03-28
| | | | | | If of.err is 0, it means that there was a memory allocation error and no further logging and/or processing is needed. The of.failed string can be only accessed if of.err is not 0.
* Access log: removed dead ev->timedout check in flush timer handler.Maxim Dounin2017-03-07
| | | | | | | | | | | | | | The ev->timedout flag is set on first timer expiration, and never reset after it. Due to this the code to stop the timer when the timer was canceled never worked (except in a very specific time frame immediately after start), and the timer was always armed again. This essentially resulted in a buffer flush at the end of an event loop iteration. This behaviour actually seems to be better than just stopping the flush timer for the whole shutdown, so it is preserved as is instead of fixing the code to actually remove the timer. It will be further improved by upcoming changes to preserve cancelable timers if there are other timers blocking shutdown.
* Access log: support for json escaping.Valentin Bartenev2016-12-15
|
* Avoid left-shifting integers into the sign bit, which is undefined.Sergey Kandaurov2016-07-07
| | | | Found with UndefinedBehaviorSanitizer.
* Access log: restricted "log_format" to "http" level.Sergey Kandaurov2014-12-01
| | | | | Specifying the "log_format" directive on levels other than "http" is deprecated since 73d37e1ccb91 (1.1.11).
* Access log: cancel the flush timer on graceful shutdown.Valentin Bartenev2014-08-25
| | | | | Previously, it could prevent a worker process from exiting for up to the configured flush timeout.
* Access log: fixed the "if=" parameter with buffering (ticket #625).Valentin Bartenev2014-09-13
| | | | | It might not work if there were more than one "access_log" directives pointed to the same file and duplicate buffer parameters.
* Access log: allowed logs to syslog with "if=" (ticket #596).Maxim Dounin2014-08-06
|
* Access log: fix default value, broken by cb308813b453.Piotr Sikora2014-06-03
| | | | | | | | | | | log->filter ("if" parameter) was uninitialized when the default value was being used, which would lead to a crash (SIGSEGV) when access_log directive wasn't specified in the configuration. Zero-fill the whole structure instead of zeroing fields one-by-one in order to prevent similar issues in the future. Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
* Added syslog support for error_log and access_log directives.Vladimir Homutov2014-05-12
|
* Access log: the "if" parameter of the "access_log" directive.Sergey Kandaurov2014-04-15
| | | | The parameter value specifies a condition under which the request is logged.
* Win32: $request_time fixed.Maxim Dounin2013-09-04
| | | | | | On win32, time_t is 64 bits wide by default, and passing an ngx_msec_int_t argument for %T format specifier doesn't work. This doesn't manifest itself on other platforms as time_t and ngx_msec_int_t are usually of the same size.
* Backed out f1a91825730a and 7094bd12c1ff.Maxim Dounin2013-08-20
| | | | | | | While ngx_get_full_name() might have a bit more descriptive arguments, the ngx_conf_full_name() is generally easier to use when parsing configuration and limits exposure of cycle->prefix / cycle->conf_prefix details.
* Replaced ngx_conf_full_name() with ngx_get_full_name().Valentin Bartenev2013-08-06
| | | | The ngx_get_full_name() function takes more readable arguments list.
* Access log: the "gzip" parameter of the "access_log" directive.Valentin Bartenev2012-12-23
| | | | Note: this requires zlib version 1.2.0.4 or above to work.
* Access log: the "flush" parameter of the "access_log" directive.Valentin Bartenev2012-12-23
|
* Reopening log files code moved to a separate function.Valentin Bartenev2012-12-23
| | | | | | The code refactored in a way to call custom handler that can do appropriate cleanup work (if any), like flushing buffers, finishing compress streams, finalizing connections to log daemon, etc..
* Access log: fixed redundant buffer reallocation.Valentin Bartenev2012-12-23
| | | | | Previously a new buffer was allocated for every "access_log" directive with the same file path and "buffer=" parameters, while only one buffer per file is used.
* Variables $connection and $connection_requests.Maxim Dounin2012-10-29
| | | | | Log module counterparts are removed as they aren't used often and there is no need to preserve them for efficiency.
* Log: $apache_bytes_sent removed.Maxim Dounin2012-10-03
| | | | | It was renamed to $body_bytes_sent in nginx 0.3.10 and the old name is deprecated since then.
* Fixed compilation with -Wmissing-prototypes.Ruslan Ermilov2012-07-24
|
* New core variable: $status.Andrey Belov2012-06-18
| | | | | | | | Contains response status code as a 3-digit integer (with leading zeroes if necessary), or one of the following values: 000 - response status code has not yet been assigned 009 - HTTP/0.9 request is being processed
* Zero padded the returned and logged HTTP status code, and fixed possibleRuslan Ermilov2012-05-16
| | | | buffer overrun in $status handling.
* - New variable: $connection_requests.Ruslan Ermilov2012-03-15
| | | | - While here, fixed format specifier for $connection.
* Fixed spelling in single-line comments.Ruslan Ermilov2012-02-28
|
* Disable symlinks: initialization of the "disable_symlinks" field inValentin Bartenev2012-02-27
| | | | | | | ngx_open_file_info_t moved to a separate function. This is preparation for the "from=" parameter implementation of the "disable_symlinks" directive.
* Support for disable_symlinks in various modules.Andrey Belov2012-02-13
|
* Time parsing cleanup.Maxim Dounin2012-02-13
| | | | | | | Nuke NGX_PARSE_LARGE_TIME, it's not used since 0.6.30. The only error ngx_parse_time() can currently return is NGX_ERROR, check it explicitly and make sure to cast it to appropriate type (either time_t or ngx_msec_t) to avoid signedness warnings on platforms with unsigned time_t (notably QNX).
* Copyright updated.Maxim Konovalov2012-01-18
|
* - Improved error message when parsing of the "buffer" parameter of theRuslan Ermilov2011-12-06
| | | | | | "access_log" directive fails. - Added a warning if "log_format" is used in contexts other than "http".
* Improved access log escaping to better protect other software.Maxim Dounin2011-10-11
| | | | | | | Some character sets (notably ISO-8859-1) have C1 control characters in upper half, make sure to escape them. Reported by Jesus Olmos Gonzalez.
* Replaced "can not" with "cannot" and "could not" in a bunch of places.Ruslan Ermilov2011-09-19
| | | | Fixed nearby grammar errors.
* removal of error message about %name log_format parameters,Igor Sysoev2011-08-03
| | | | they have been deleted long ago in 0.5.0-RELEASE
* $time_iso8601 log variableIgor Sysoev2011-03-16
| | | | patch by Michael Lustfield
* ngx_str_set() and ngx_str_null()Igor Sysoev2010-05-14
|
* use ngx_min() and ngx_max()Igor Sysoev2010-05-14
|
* log proxied HTTP/0.9 responses status as "009"Igor Sysoev2009-11-29
|
* optimize some cycles:Igor Sysoev2009-11-02
| | | | | | *) delete surplus variable; *) on i386/amd64 "while (n) / n--" is smaller than "while (n--)", because the platforms have no postfix operations
* style fixIgor Sysoev2009-09-11
|
* strict testing "access_log off"Igor Sysoev2009-08-23
|
* return NULL instead of NGX_CONF_ERROR on a create conf failureIgor Sysoev2009-06-02
|
* *) of.test_only to not open file if only stat() is enoughIgor Sysoev2009-04-27
| | | | *) of.failed to return exact name of failed syscall
* small optimization: " == NGX_ERROR" > " != NGX_OK"Igor Sysoev2009-02-24
|
* NGX_OPEN_FILE_DIRECTIO_OFFIgor Sysoev2008-10-16
|
* *) log_subrequestIgor Sysoev2008-09-27
| | | | *) flush variables in access log
* disable directio for access_log with variablesIgor Sysoev2008-09-12
|
* remove unused #include'sIgor Sysoev2008-09-05
|
* always test root existence for access_log with variablesIgor Sysoev2008-07-07
|
* NULL script in default access_logIgor Sysoev2008-07-01
|