Welcome! Log In Create A New Profile

Advanced

[nginx] Access log: allowed logs to syslog with "if=" (ticket #5...

Maxim Dounin
August 05, 2014 04:56PM
details: http://hg.nginx.org/nginx/rev/b1f8285297a7
branches:
changeset: 5799:b1f8285297a7
user: Maxim Dounin <mdounin@mdounin.ru>
date: Wed Aug 06 00:22:36 2014 +0400
description:
Access log: allowed logs to syslog with "if=" (ticket #596).

diffstat:

src/http/modules/ngx_http_log_module.c | 17 ++++++-----------
1 files changed, 6 insertions(+), 11 deletions(-)

diffs (34 lines):

diff --git a/src/http/modules/ngx_http_log_module.c b/src/http/modules/ngx_http_log_module.c
--- a/src/http/modules/ngx_http_log_module.c
+++ b/src/http/modules/ngx_http_log_module.c
@@ -1254,17 +1254,6 @@ process_formats:
return NGX_CONF_ERROR;
}

- if (log->syslog_peer != NULL) {
- if (cf->args->nelts > 3) {
- ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
- "parameter \"%V\" is not supported by syslog",
- &value[3]);
- return NGX_CONF_ERROR;
- }
-
- return NGX_CONF_OK;
- }
-
size = 0;
flush = 0;
gzip = 0;
@@ -1361,6 +1350,12 @@ process_formats:
return NGX_CONF_ERROR;
}

+ if (log->syslog_peer) {
+ ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
+ "logs to syslog cannot be buffered");
+ return NGX_CONF_ERROR;
+ }
+
if (log->file->data) {
buffer = log->file->data;


_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Access log: allowed logs to syslog with "if=" (ticket #5...

Maxim Dounin 617 August 05, 2014 04:56PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 171
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready