diff options
Diffstat (limited to 'src/core/ngx_log.h')
-rw-r--r-- | src/core/ngx_log.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/core/ngx_log.h b/src/core/ngx_log.h index dcbbef831..959c13206 100644 --- a/src/core/ngx_log.h +++ b/src/core/ngx_log.h @@ -63,11 +63,14 @@ typedef enum { */ +typedef size_t (*ngx_log_handler_pt) (void *ctx, char *buf, size_t len); + + typedef struct { - int log_level; - ngx_open_file_t *file; - void *data; - size_t (*handler)(void *ctx, char *buf, size_t len); + int log_level; + ngx_open_file_t *file; + void *data; + ngx_log_handler_pt handler; #if 0 /* STUB */ |