Mercurial > hg > nginx-quic
comparison src/core/ngx_syslog.h @ 5702:777202558122
Added syslog support for error_log and access_log directives.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Mon, 12 May 2014 16:34:15 +0400 |
parents | |
children | 2cb5275bf5e7 |
comparison
equal
deleted
inserted
replaced
5701:1209b8a7b077 | 5702:777202558122 |
---|---|
1 | |
2 /* | |
3 * Copyright (C) Nginx, Inc. | |
4 */ | |
5 | |
6 | |
7 #ifndef _NGX_SYSLOG_H_INCLUDED_ | |
8 #define _NGX_SYSLOG_H_INCLUDED_ | |
9 | |
10 | |
11 typedef struct { | |
12 ngx_pool_t *pool; | |
13 ngx_uint_t facility; | |
14 ngx_uint_t severity; | |
15 ngx_str_t tag; | |
16 | |
17 ngx_addr_t server; | |
18 ngx_connection_t conn; | |
19 ngx_uint_t processing; /* unsigned processing:1; */ | |
20 } ngx_syslog_peer_t; | |
21 | |
22 | |
23 char *ngx_syslog_process_conf(ngx_conf_t *cf, ngx_syslog_peer_t *peer); | |
24 u_char *ngx_syslog_add_header(ngx_syslog_peer_t *peer, u_char *buf); | |
25 void ngx_syslog_writer(ngx_log_t *log, ngx_uint_t level, u_char *buf, | |
26 size_t len); | |
27 ssize_t ngx_syslog_send(ngx_syslog_peer_t *peer, u_char *buf, size_t len); | |
28 | |
29 | |
30 #endif /* _NGX_SYSLOG_H_INCLUDED_ */ |