Mercurial > hg > nginx
comparison src/core/ngx_log.h @ 6:669801705ab1
nginx-0.0.1-2002-08-26-19:18:19 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 26 Aug 2002 15:18:19 +0000 |
parents | c5f071d376e5 |
children | 708f8bb772ec |
comparison
equal
deleted
inserted
replaced
5:62b1a364857c | 6:669801705ab1 |
---|---|
1 #ifndef _NGX_LOG_H_INCLUDED_ | 1 #ifndef _NGX_LOG_H_INCLUDED_ |
2 #define _NGX_LOG_H_INCLUDED_ | 2 #define _NGX_LOG_H_INCLUDED_ |
3 | 3 |
4 | 4 |
5 #include <ngx_errno.h> | 5 #include <ngx_errno.h> |
6 #include <ngx_file.h> | |
6 | 7 |
7 typedef enum { | 8 typedef enum { |
8 NGX_LOG_EMERG = 0, | 9 NGX_LOG_EMERG = 0, |
9 NGX_LOG_ALERT, | 10 NGX_LOG_ALERT, |
10 NGX_LOG_CRIT, | 11 NGX_LOG_CRIT, |
57 context: pop3 user account | 58 context: pop3 user account |
58 "... while reading client command for 'john_doe'" | 59 "... while reading client command for 'john_doe'" |
59 */ | 60 */ |
60 | 61 |
61 typedef struct { | 62 typedef struct { |
62 int log_level; | 63 int log_level; |
63 char *action; | 64 ngx_fd_t fd; |
64 char *context; | 65 void *data; |
65 #if 0 | 66 size_t (*handler)(void *ctx, char *buf, size_t len); |
66 void *data; /* i.e. ngx_http_proxy_error_context_t */ | 67 /* STUB */ |
67 char *func(ngx_log_t *log); | 68 char *action; |
68 #endif | 69 char *context; |
70 /* */ | |
69 } ngx_log_t; | 71 } ngx_log_t; |
70 | 72 |
71 #define MAX_ERROR_STR 2048 | 73 #define MAX_ERROR_STR 2048 |
72 | 74 |
73 #define _ , | 75 #define _ , |