php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_syslog.h
Go to the documentation of this file.
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
38PHPAPI void php_syslog_str(int priority, const zend_string* message);
39PHPAPI void php_syslog(int, const char *format, ...);
40PHPAPI void php_openlog(const char *, int, int);
41PHPAPI void php_closelog(void);
43
44#endif
#define PHPAPI
Definition php.h:71
void php_openlog(const char *ident, int option, int facility)
Definition php_syslog.c:74
PHPAPI void php_syslog(int priority, const char *format,...)
Definition php_syslog.c:106
PHPAPI void php_syslog_str(int priority, const zend_string *message)
Definition php_syslog.c:35
void php_closelog(void)
Definition php_syslog.c:80
struct _zend_string zend_string
#define END_EXTERN_C()
#define BEGIN_EXTERN_C()