diff options
author | Vladimir Homutov <vl@nginx.com> | 2014-05-12 16:34:15 +0400 |
---|---|---|
committer | Vladimir Homutov <vl@nginx.com> | 2014-05-12 16:34:15 +0400 |
commit | 493b898ae94ae7dd390d77c42f5500974be48393 (patch) | |
tree | b85c242bcdba82459aa209c76efbe0b4f826f103 /src/core/ngx_log.h | |
parent | 1736c180f4683d57d175b98d5596b779bab950d4 (diff) | |
download | nginx-493b898ae94ae7dd390d77c42f5500974be48393.tar.gz nginx-493b898ae94ae7dd390d77c42f5500974be48393.zip |
Added syslog support for error_log and access_log directives.
Diffstat (limited to 'src/core/ngx_log.h')
-rw-r--r-- | src/core/ngx_log.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/ngx_log.h b/src/core/ngx_log.h index 878fb0a27..c1a52c44f 100644 --- a/src/core/ngx_log.h +++ b/src/core/ngx_log.h @@ -43,6 +43,8 @@ typedef u_char *(*ngx_log_handler_pt) (ngx_log_t *log, u_char *buf, size_t len); +typedef void (*ngx_log_writer_pt) (ngx_log_t *log, ngx_uint_t level, + u_char *buf, size_t len); struct ngx_log_s { @@ -54,6 +56,9 @@ struct ngx_log_s { ngx_log_handler_pt handler; void *data; + ngx_log_writer_pt writer; + void *wdata; + /* * we declare "action" as "char *" because the actions are usually * the static strings and in the "u_char *" case we have to override @@ -227,6 +232,7 @@ void ngx_cdecl ngx_log_stderr(ngx_err_t err, const char *fmt, ...); u_char *ngx_log_errno(u_char *buf, u_char *last, ngx_err_t err); ngx_int_t ngx_log_open_default(ngx_cycle_t *cycle); ngx_int_t ngx_log_redirect_stderr(ngx_cycle_t *cycle); +ngx_log_t *ngx_log_get_file_log(ngx_log_t *head); char *ngx_log_set_log(ngx_conf_t *cf, ngx_log_t **head); |