f949c7a8d976279fa8504691c6a00786dd503525
[gd/samba/.git] / source4 / lib / replace / system / syslog.h
1 #ifndef _system_syslog_h
2 #define _system_syslog_h
3 /* 
4    Unix SMB/CIFS implementation.
5
6    syslog system include wrappers
7
8    Copyright (C) Andrew Tridgell 2004
9    
10      ** NOTE! The following LGPL license applies to the replace
11      ** library. This does NOT imply that all of Samba is released
12      ** under the LGPL
13    
14    This library is free software; you can redistribute it and/or
15    modify it under the terms of the GNU Lesser General Public
16    License as published by the Free Software Foundation; either
17    version 2 of the License, or (at your option) any later version.
18
19    This library is distributed in the hope that it will be useful,
20    but WITHOUT ANY WARRANTY; without even the implied warranty of
21    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
22    Lesser General Public License for more details.
23
24    You should have received a copy of the GNU Lesser General Public
25    License along with this library; if not, write to the Free Software
26    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
27
28 */
29
30 #ifdef HAVE_SYSLOG_H
31 #include <syslog.h>
32 #else
33 #ifdef HAVE_SYS_SYSLOG_H
34 #include <sys/syslog.h>
35 #endif
36 #endif
37
38 /* For sys_adminlog(). */
39 #ifndef LOG_EMERG
40 #define LOG_EMERG       0       /* system is unusable */
41 #endif
42
43 #ifndef LOG_ALERT
44 #define LOG_ALERT       1       /* action must be taken immediately */
45 #endif
46
47 #ifndef LOG_CRIT
48 #define LOG_CRIT        2       /* critical conditions */
49 #endif
50
51 #ifndef LOG_ERR
52 #define LOG_ERR         3       /* error conditions */
53 #endif
54
55 #ifndef LOG_WARNING
56 #define LOG_WARNING     4       /* warning conditions */
57 #endif
58
59 #ifndef LOG_NOTICE
60 #define LOG_NOTICE      5       /* normal but significant condition */
61 #endif
62
63 #ifndef LOG_INFO
64 #define LOG_INFO        6       /* informational */
65 #endif
66
67 #ifndef LOG_DEBUG
68 #define LOG_DEBUG       7       /* debug-level messages */
69 #endif
70
71 #endif