Mercurial > hg > nginx
diff src/core/ngx_log.c @ 503:b1648294f693 release-0.1.26
nginx-0.1.26-RELEASE import
*) Change: the invalid client header lines are now ignored and logged
at the info level.
*) Change: the server name is also logged in error log.
*) Feature: the ngx_http_auth_basic_module module and the auth_basic
and auth_basic_user_file directives.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 22 Mar 2005 16:02:46 +0000 |
parents | d4ea69372b94 |
children | 9b8c906f6e63 |
line wrap: on
line diff
--- a/src/core/ngx_log.c +++ b/src/core/ngx_log.c @@ -58,11 +58,17 @@ static const char *debug_levels[] = { #if (NGX_HAVE_VARIADIC_MACROS) -void ngx_log_error_core(ngx_uint_t level, ngx_log_t *log, ngx_err_t err, - const char *fmt, ...) + +void +ngx_log_error_core(ngx_uint_t level, ngx_log_t *log, ngx_err_t err, + const char *fmt, ...) + #else -void ngx_log_error_core(ngx_uint_t level, ngx_log_t *log, ngx_err_t err, - const char *fmt, va_list args) + +void +ngx_log_error_core(ngx_uint_t level, ngx_log_t *log, ngx_err_t err, + const char *fmt, va_list args) + #endif { #if (NGX_HAVE_VARIADIC_MACROS) @@ -144,7 +150,8 @@ void ngx_log_error_core(ngx_uint_t level } -static void ngx_log_write(ngx_log_t *log, u_char *errstr, size_t len) +static void +ngx_log_write(ngx_log_t *log, u_char *errstr, size_t len) { #if (NGX_WIN32) u_long written; @@ -180,8 +187,9 @@ static void ngx_log_write(ngx_log_t *log #if !(NGX_HAVE_VARIADIC_MACROS) -void ngx_log_error(ngx_uint_t level, ngx_log_t *log, ngx_err_t err, - const char *fmt, ...) +void ngx_cdecl +ngx_log_error(ngx_uint_t level, ngx_log_t *log, ngx_err_t err, + const char *fmt, ...) { va_list args; @@ -193,7 +201,8 @@ void ngx_log_error(ngx_uint_t level, ngx } -void ngx_log_debug_core(ngx_log_t *log, ngx_err_t err, const char *fmt, ...) +void ngx_cdecl +ngx_log_debug_core(ngx_log_t *log, ngx_err_t err, const char *fmt, ...) { va_list args; @@ -205,7 +214,8 @@ void ngx_log_debug_core(ngx_log_t *log, #endif -ngx_log_t *ngx_log_init(void) +ngx_log_t * +ngx_log_init(void) { ngx_log.file = &ngx_stderr; ngx_log.log_level = NGX_LOG_NOTICE; @@ -240,7 +250,8 @@ ngx_log_t *ngx_log_init(void) } -ngx_log_t *ngx_log_create_errlog(ngx_cycle_t *cycle, ngx_array_t *args) +ngx_log_t * +ngx_log_create_errlog(ngx_cycle_t *cycle, ngx_array_t *args) { ngx_log_t *log; ngx_str_t *value, *name; @@ -267,7 +278,8 @@ ngx_log_t *ngx_log_create_errlog(ngx_cyc } -char *ngx_set_error_log_levels(ngx_conf_t *cf, ngx_log_t *log) +char * +ngx_set_error_log_levels(ngx_conf_t *cf, ngx_log_t *log) { ngx_uint_t i, n, d; ngx_str_t *value; @@ -320,7 +332,8 @@ char *ngx_set_error_log_levels(ngx_conf_ } -static char *ngx_set_error_log(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) +static char * +ngx_set_error_log(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) { ngx_str_t *value;