1ed207cdc26e36a4927d0f64ebf67bff3ba71aa8
[aaf/sshsm.git] / SoftHSMv2 / src / lib / win32 / syslog.h
1 #ifndef _SYSLOG_H
2 #define _SYSLOG_H
3
4 #include <stdio.h>
5
6 /* priorities */
7 #define LOG_EMERG       0       /* system is unusable */
8 #define LOG_ALERT       1       /* action must be taken immediately */
9 #define LOG_CRIT        2       /* critical conditions */
10 #define LOG_ERR         3       /* error conditions */
11 #define LOG_WARNING     4       /* warning conditions */
12 #define LOG_NOTICE      5       /* normal but signification condition */
13 #define LOG_INFO        6       /* informational */
14 #define LOG_DEBUG       7       /* debug-level messages */
15
16 /* NT event log does not support facility level */
17 #define LOG_KERN        0
18 #define LOG_USER        0
19 #define LOG_MAIL        0
20 #define LOG_DAEMON      0
21 #define LOG_AUTH        0
22 #define LOG_SYSLOG      0
23 #define LOG_LPR         0
24 #define LOG_LOCAL0      0
25 #define LOG_LOCAL1      0
26 #define LOG_LOCAL2      0
27 #define LOG_LOCAL3      0
28 #define LOG_LOCAL4      0
29 #define LOG_LOCAL5      0
30 #define LOG_LOCAL6      0
31 #define LOG_LOCAL7      0
32
33 /* Constant definitions for openlog() */
34 #define LOG_PID         1
35 #define LOG_CONS        2
36
37 void
38 closelog(void);
39
40 void
41 openlog(const char *ident, int logopt, int facility);
42
43 void
44 syslog(int priority, const char *message, ...);
45
46 #endif