xref: /php-src/main/php_syslog.h (revision d9cca443)
1 /*
2   +----------------------------------------------------------------------+
3   | Copyright (c) The PHP Group                                          |
4   +----------------------------------------------------------------------+
5   | This source file is subject to version 3.01 of the PHP license,      |
6   | that is bundled with this package in the file LICENSE, and is        |
7   | available through the world-wide-web at the following url:           |
8   | https://www.php.net/license/3_01.txt                                 |
9   | If you did not receive a copy of the PHP license and are unable to   |
10   | obtain it through the world-wide-web, please send a note to          |
11   | license@php.net so we can mail you a copy immediately.               |
12   +----------------------------------------------------------------------+
13   | Author:                                                              |
14   +----------------------------------------------------------------------+
15 */
16 
17 #ifndef PHP_SYSLOG_H
18 #define PHP_SYSLOG_H
19 
20 #include "php.h"
21 
22 #ifdef PHP_WIN32
23 #include "win32/syslog.h"
24 #else
25 #include <php_config.h>
26 #ifdef HAVE_SYSLOG_H
27 #include <syslog.h>
28 #endif
29 #endif
30 
31 /* Syslog filters */
32 #define PHP_SYSLOG_FILTER_ALL		0
33 #define PHP_SYSLOG_FILTER_NO_CTRL	1
34 #define PHP_SYSLOG_FILTER_ASCII		2
35 #define PHP_SYSLOG_FILTER_RAW		3
36 
37 BEGIN_EXTERN_C()
38 PHPAPI void php_syslog_str(int priority, const zend_string* message);
39 PHPAPI void php_syslog(int, const char *format, ...);
40 PHPAPI void php_openlog(const char *, int, int);
41 PHPAPI void php_closelog(void);
42 END_EXTERN_C()
43 
44 #endif
45