Mercurial > hg > nginx
comparison src/core/ngx_log.c @ 311:11ff50a35d6d
nginx-0.0.3-2004-04-12-20:38:09 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 12 Apr 2004 16:38:09 +0000 |
parents | 87e73f067470 |
children | 1308b98496a2 |
comparison
equal
deleted
inserted
replaced
310:a9a9af2c7370 | 311:11ff50a35d6d |
---|---|
4 | 4 |
5 | 5 |
6 static void ngx_log_write(ngx_log_t *log, char *errstr, size_t len); | 6 static void ngx_log_write(ngx_log_t *log, char *errstr, size_t len); |
7 static char *ngx_set_error_log(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); | 7 static char *ngx_set_error_log(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); |
8 | 8 |
9 | |
10 static ngx_str_t errlog_name = ngx_string("errlog"); | |
11 | 9 |
12 static ngx_command_t ngx_errlog_commands[] = { | 10 static ngx_command_t ngx_errlog_commands[] = { |
13 | 11 |
14 {ngx_string("error_log"), | 12 {ngx_string("error_log"), |
15 NGX_MAIN_CONF|NGX_CONF_1MORE, | 13 NGX_MAIN_CONF|NGX_CONF_1MORE, |
20 | 18 |
21 ngx_null_command | 19 ngx_null_command |
22 }; | 20 }; |
23 | 21 |
24 | 22 |
23 static ngx_core_module_t ngx_errlog_module_ctx = { | |
24 ngx_string("errlog"), | |
25 NULL, | |
26 NULL | |
27 }; | |
28 | |
29 | |
25 ngx_module_t ngx_errlog_module = { | 30 ngx_module_t ngx_errlog_module = { |
26 NGX_MODULE, | 31 NGX_MODULE, |
27 &errlog_name, /* module context */ | 32 &ngx_errlog_module_ctx, /* module context */ |
28 ngx_errlog_commands, /* module directives */ | 33 ngx_errlog_commands, /* module directives */ |
29 NGX_CORE_MODULE, /* module type */ | 34 NGX_CORE_MODULE, /* module type */ |
30 NULL, /* init module */ | 35 NULL, /* init module */ |
31 NULL /* init child */ | 36 NULL /* init child */ |
32 }; | 37 }; |