Mercurial > hg > nginx
comparison src/core/ngx_log.h @ 461:a88a3e4e158f release-0.1.5
nginx-0.1.5-RELEASE import
*) Bugfix: on Solaris and Linux there may be too many "recvmsg()
returned not enough data" alerts.
*) Bugfix: there were the "writev() failed (22: Invalid argument)"
errors on Solaris in proxy mode without sendfile. On other platforms
that do not support sendfile at all the process got caught in an
endless loop.
*) Bugfix: segmentation fault on Solaris in proxy mode and using
sendfile.
*) Bugfix: segmentation fault on Solaris.
*) Bugfix: on-line upgrade did not work on Linux.
*) Bugfix: the ngx_http_autoindex_module module did not escape the
spaces, the quotes, and the percent signs in the directory listing.
*) Change: the decrease of the copy operations.
*) Feature: the userid_p3p directive.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 11 Nov 2004 14:07:14 +0000 |
parents | 295d97d70c69 |
children | 621229427cba |
comparison
equal
deleted
inserted
replaced
460:5f8319142dfc | 461:a88a3e4e158f |
---|---|
38 #define NGX_LOG_DEBUG_LAST NGX_LOG_DEBUG_IMAP | 38 #define NGX_LOG_DEBUG_LAST NGX_LOG_DEBUG_IMAP |
39 #define NGX_LOG_DEBUG_CONNECTION 0x80000000 | 39 #define NGX_LOG_DEBUG_CONNECTION 0x80000000 |
40 #define NGX_LOG_DEBUG_ALL 0x7ffffff0 | 40 #define NGX_LOG_DEBUG_ALL 0x7ffffff0 |
41 | 41 |
42 | 42 |
43 typedef size_t (*ngx_log_handler_pt) (void *ctx, char *buf, size_t len); | 43 typedef u_char *(*ngx_log_handler_pt) (void *ctx, u_char *buf, size_t len); |
44 | 44 |
45 | 45 |
46 struct ngx_log_s { | 46 struct ngx_log_s { |
47 ngx_uint_t log_level; | 47 ngx_uint_t log_level; |
48 ngx_open_file_t *file; | 48 ngx_open_file_t *file; |
49 void *data; | 49 void *data; |
50 ngx_log_handler_pt handler; | 50 ngx_log_handler_pt handler; |
51 }; | 51 }; |
52 | 52 |
53 #define MAX_ERROR_STR 2048 | 53 |
54 #define NGX_MAX_ERROR_STR 2048 | |
54 | 55 |
55 | 56 |
56 /*********************************/ | 57 /*********************************/ |
57 | 58 |
58 #if (NGX_HAVE_GCC_VARIADIC_MACROS) | 59 #if (NGX_HAVE_GCC_VARIADIC_MACROS) |
86 void ngx_log_error(ngx_uint_t level, ngx_log_t *log, ngx_err_t err, | 87 void ngx_log_error(ngx_uint_t level, ngx_log_t *log, ngx_err_t err, |
87 const char *fmt, ...); | 88 const char *fmt, ...); |
88 void ngx_log_error_core(ngx_uint_t level, ngx_log_t *log, ngx_err_t err, | 89 void ngx_log_error_core(ngx_uint_t level, ngx_log_t *log, ngx_err_t err, |
89 const char *fmt, va_list args); | 90 const char *fmt, va_list args); |
90 void ngx_log_debug_core(ngx_log_t *log, ngx_err_t err, const char *fmt, ...); | 91 void ngx_log_debug_core(ngx_log_t *log, ngx_err_t err, const char *fmt, ...); |
91 void ngx_assert_core(ngx_log_t *log, const char *fmt, ...); | |
92 | 92 |
93 | 93 |
94 #endif /* VARIADIC MACROS */ | 94 #endif /* VARIADIC MACROS */ |
95 | 95 |
96 | 96 |
193 /*********************************/ | 193 /*********************************/ |
194 | 194 |
195 #define ngx_log_alloc_log(pool, log) ngx_palloc(pool, log, sizeof(ngx_log_t)) | 195 #define ngx_log_alloc_log(pool, log) ngx_palloc(pool, log, sizeof(ngx_log_t)) |
196 #define ngx_log_copy_log(new, old) ngx_memcpy(new, old, sizeof(ngx_log_t)) | 196 #define ngx_log_copy_log(new, old) ngx_memcpy(new, old, sizeof(ngx_log_t)) |
197 | 197 |
198 ngx_log_t *ngx_log_init_stderr(); | 198 ngx_log_t *ngx_log_init(); |
199 #if 0 | |
200 ngx_int_t ngx_log_init_error_log(); | |
201 #endif | |
202 ngx_log_t *ngx_log_create_errlog(ngx_cycle_t *cycle, ngx_array_t *args); | 199 ngx_log_t *ngx_log_create_errlog(ngx_cycle_t *cycle, ngx_array_t *args); |
203 char *ngx_set_error_log_levels(ngx_conf_t *cf, ngx_log_t *log); | 200 char *ngx_set_error_log_levels(ngx_conf_t *cf, ngx_log_t *log); |
204 | 201 |
205 | 202 |
206 | 203 |