Back to home page

Nginx displayed by LXR

Source navigation ]
Diff markup ]
Identifier search ]
general search ]
 
 
Version: nginx-1.13.12 ]​[ nginx-1.12.2 ]​

0001 
0002 /*
0003  * Copyright (C) Nginx, Inc.
0004  */
0005 
0006 
0007 #ifndef _NGX_SYSLOG_H_INCLUDED_
0008 #define _NGX_SYSLOG_H_INCLUDED_
0009 
0010 
0011 typedef struct {
0012     ngx_pool_t       *pool;
0013     ngx_uint_t        facility;
0014     ngx_uint_t        severity;
0015     ngx_str_t         tag;
0016 
0017     ngx_addr_t        server;
0018     ngx_connection_t  conn;
0019     unsigned          busy:1;
0020     unsigned          nohostname:1;
0021 } ngx_syslog_peer_t;
0022 
0023 
0024 char *ngx_syslog_process_conf(ngx_conf_t *cf, ngx_syslog_peer_t *peer);
0025 u_char *ngx_syslog_add_header(ngx_syslog_peer_t *peer, u_char *buf);
0026 void ngx_syslog_writer(ngx_log_t *log, ngx_uint_t level, u_char *buf,
0027     size_t len);
0028 ssize_t ngx_syslog_send(ngx_syslog_peer_t *peer, u_char *buf, size_t len);
0029 
0030 
0031 #endif /* _NGX_SYSLOG_H_INCLUDED_ */