php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
syslog.h File Reference
#include <windows.h>

Go to the source code of this file.

Macros

#define WIN32_LEAN_AND_MEAN
 
#define LOG_EMERG   1
 
#define LOG_ALERT   1
 
#define LOG_CRIT   1
 
#define LOG_ERR   4
 
#define LOG_WARNING   5
 
#define LOG_NOTICE   6
 
#define LOG_INFO   6
 
#define LOG_DEBUG   6
 
#define LOG_PRIMASK   0x07
 
#define LOG_PRI(p)
 
#define LOG_MAKEPRI(fac, pri)
 
#define LOG_KERN   (0<<3)
 
#define LOG_USER   (1<<3)
 
#define LOG_MAIL   (2<<3)
 
#define LOG_DAEMON   (3<<3)
 
#define LOG_AUTH   (4<<3)
 
#define LOG_SYSLOG   (5<<3)
 
#define LOG_LPR   (6<<3)
 
#define LOG_NEWS   (7<<3)
 
#define LOG_UUCP   (8<<3)
 
#define LOG_CRON   (9<<3)
 
#define LOG_AUTHPRIV   (10<<3)
 
#define LOG_NFACILITIES   10
 
#define LOG_FACMASK   0x03f8
 
#define LOG_FAC(p)
 
#define LOG_MASK(pri)
 
#define LOG_UPTO(pri)
 
#define LOG_PID   0x01 /* log the pid with each message */
 
#define LOG_CONS   0x02 /* log on the console if errors in sending */
 
#define LOG_ODELAY   0x04 /* delay open until first syslog() (default) */
 
#define LOG_NDELAY   0x08 /* don't delay open */
 
#define LOG_NOWAIT   0x10 /* don't wait for console forks: DEPRECATED */
 
#define LOG_PERROR   0x20 /* log to stderr as well */
 

Functions

void closelog (void)
 
void openlog (const char *, int, int)
 
void syslog (int, const char *,...)
 
void vsyslog (int, const char *, va_list ap)
 

Macro Definition Documentation

◆ LOG_ALERT

#define LOG_ALERT   1

Definition at line 23 of file syslog.h.

◆ LOG_AUTH

#define LOG_AUTH   (4<<3)

Definition at line 40 of file syslog.h.

◆ LOG_AUTHPRIV

#define LOG_AUTHPRIV   (10<<3)

Definition at line 46 of file syslog.h.

◆ LOG_CONS

#define LOG_CONS   0x02 /* log on the console if errors in sending */

Definition at line 62 of file syslog.h.

◆ LOG_CRIT

#define LOG_CRIT   1

Definition at line 24 of file syslog.h.

◆ LOG_CRON

#define LOG_CRON   (9<<3)

Definition at line 45 of file syslog.h.

◆ LOG_DAEMON

#define LOG_DAEMON   (3<<3)

Definition at line 39 of file syslog.h.

◆ LOG_DEBUG

#define LOG_DEBUG   6

Definition at line 29 of file syslog.h.

◆ LOG_EMERG

#define LOG_EMERG   1

Definition at line 22 of file syslog.h.

◆ LOG_ERR

#define LOG_ERR   4

Definition at line 25 of file syslog.h.

◆ LOG_FAC

#define LOG_FAC ( p)
Value:
(((p) & LOG_FACMASK) >> 3)
p
Definition session.c:1105
#define LOG_FACMASK
Definition syslog.h:49

Definition at line 50 of file syslog.h.

◆ LOG_FACMASK

#define LOG_FACMASK   0x03f8

Definition at line 49 of file syslog.h.

◆ LOG_INFO

#define LOG_INFO   6

Definition at line 28 of file syslog.h.

◆ LOG_KERN

#define LOG_KERN   (0<<3)

Definition at line 36 of file syslog.h.

◆ LOG_LPR

#define LOG_LPR   (6<<3)

Definition at line 42 of file syslog.h.

◆ LOG_MAIL

#define LOG_MAIL   (2<<3)

Definition at line 38 of file syslog.h.

◆ LOG_MAKEPRI

#define LOG_MAKEPRI ( fac,
pri )
Value:
(((fac) << 3) | (pri))

Definition at line 34 of file syslog.h.

◆ LOG_MASK

#define LOG_MASK ( pri)
Value:
(1 << (pri))

Definition at line 52 of file syslog.h.

◆ LOG_NDELAY

#define LOG_NDELAY   0x08 /* don't delay open */

Definition at line 64 of file syslog.h.

◆ LOG_NEWS

#define LOG_NEWS   (7<<3)

Definition at line 43 of file syslog.h.

◆ LOG_NFACILITIES

#define LOG_NFACILITIES   10

Definition at line 48 of file syslog.h.

◆ LOG_NOTICE

#define LOG_NOTICE   6

Definition at line 27 of file syslog.h.

◆ LOG_NOWAIT

#define LOG_NOWAIT   0x10 /* don't wait for console forks: DEPRECATED */

Definition at line 65 of file syslog.h.

◆ LOG_ODELAY

#define LOG_ODELAY   0x04 /* delay open until first syslog() (default) */

Definition at line 63 of file syslog.h.

◆ LOG_PERROR

#define LOG_PERROR   0x20 /* log to stderr as well */

Definition at line 66 of file syslog.h.

◆ LOG_PID

#define LOG_PID   0x01 /* log the pid with each message */

Definition at line 61 of file syslog.h.

◆ LOG_PRI

#define LOG_PRI ( p)
Value:
#define LOG_PRIMASK
Definition syslog.h:31

Definition at line 33 of file syslog.h.

◆ LOG_PRIMASK

#define LOG_PRIMASK   0x07

Definition at line 31 of file syslog.h.

◆ LOG_SYSLOG

#define LOG_SYSLOG   (5<<3)

Definition at line 41 of file syslog.h.

◆ LOG_UPTO

#define LOG_UPTO ( pri)
Value:
((1 << ((pri)+1)) - 1)

Definition at line 53 of file syslog.h.

◆ LOG_USER

#define LOG_USER   (1<<3)

Definition at line 37 of file syslog.h.

◆ LOG_UUCP

#define LOG_UUCP   (8<<3)

Definition at line 44 of file syslog.h.

◆ LOG_WARNING

#define LOG_WARNING   5

Definition at line 26 of file syslog.h.

◆ WIN32_LEAN_AND_MEAN

#define WIN32_LEAN_AND_MEAN

Definition at line 19 of file syslog.h.

Function Documentation

◆ closelog()

void closelog ( void )
extern

Definition at line 2221 of file basic_functions.stub.php.

◆ openlog()

void openlog ( const char * ident,
int logopt,
int facility )
extern

Definition at line 146 of file wsyslog.c.

◆ syslog()

void syslog ( int priority,
const char * message,
... )
extern

Definition at line 81 of file wsyslog.c.

◆ vsyslog()

void vsyslog ( int priority,
const char * message,
va_list ap )
extern

Definition at line 90 of file wsyslog.c.