00001 #ifndef _system_syslog_h 00002 #define _system_syslog_h 00003 /* 00004 Unix SMB/CIFS implementation. 00005 00006 syslog system include wrappers 00007 00008 Copyright (C) Andrew Tridgell 2004 00009 00010 This program is free software; you can redistribute it and/or modify 00011 it under the terms of the GNU General Public License as published by 00012 the Free Software Foundation; either version 2 of the License, or 00013 (at your option) any later version. 00014 00015 This program is distributed in the hope that it will be useful, 00016 but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 GNU General Public License for more details. 00019 00020 You should have received a copy of the GNU General Public License 00021 along with this program; if not, write to the Free Software 00022 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00023 */ 00024 00025 #ifdef HAVE_SYSLOG_H 00026 #include <syslog.h> 00027 #else 00028 #ifdef HAVE_SYS_SYSLOG_H 00029 #include <sys/syslog.h> 00030 #endif 00031 #endif 00032 00033 /* For sys_adminlog(). */ 00034 #ifndef LOG_EMERG 00035 #define LOG_EMERG 0 /* system is unusable */ 00036 #endif 00037 00038 #ifndef LOG_ALERT 00039 #define LOG_ALERT 1 /* action must be taken immediately */ 00040 #endif 00041 00042 #ifndef LOG_CRIT 00043 #define LOG_CRIT 2 /* critical conditions */ 00044 #endif 00045 00046 #ifndef LOG_ERR 00047 #define LOG_ERR 3 /* error conditions */ 00048 #endif 00049 00050 #ifndef LOG_WARNING 00051 #define LOG_WARNING 4 /* warning conditions */ 00052 #endif 00053 00054 #ifndef LOG_NOTICE 00055 #define LOG_NOTICE 5 /* normal but significant condition */ 00056 #endif 00057 00058 #ifndef LOG_INFO 00059 #define LOG_INFO 6 /* informational */ 00060 #endif 00061 00062 #ifndef LOG_DEBUG 00063 #define LOG_DEBUG 7 /* debug-level messages */ 00064 #endif 00065 00066 #endif