1 /* Copyright (C) 2014 InfiniDB, Inc. 2 3 This program is free software; you can redistribute it and/or 4 modify it under the terms of the GNU General Public License 5 as published by the Free Software Foundation; version 2 of 6 the License. 7 8 This program is distributed in the hope that it will be useful, 9 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 GNU General Public License for more details. 12 13 You should have received a copy of the GNU General Public License 14 along with this program; if not, write to the Free Software 15 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 16 MA 02110-1301, USA. */ 17 18 #ifndef WINPORT_SYSLOG_H__ 19 #define WINPORT_SYSLOG_H__ 20 21 /* From sys/syslog.h */ 22 23 #define LOG_EMERG 0 /* system is unusable */ 24 #define LOG_ALERT 1 /* action must be taken immediately */ 25 #define LOG_CRIT 2 /* critical conditions */ 26 #define LOG_ERR 3 /* error conditions */ 27 #define LOG_WARNING 4 /* warning conditions */ 28 #define LOG_NOTICE 5 /* normal but significant condition */ 29 #define LOG_INFO 6 /* informational */ 30 #define LOG_DEBUG 7 /* debug-level messages */ 31 32 #define LOG_PID 0x01 /* log the pid with each message */ 33 #define LOG_CONS 0x02 /* log on the console if errors in sending */ 34 #define LOG_ODELAY 0x04 /* delay open until first syslog() (default) */ 35 #define LOG_NDELAY 0x08 /* don't delay open */ 36 #define LOG_NOWAIT 0x10 /* don't wait for console forks: DEPRECATED */ 37 #define LOG_PERROR 0x20 /* log to stderr as well */ 38 39 #define LOG_KERN (0<<3) /* kernel messages */ 40 #define LOG_USER (1<<3) /* random user-level messages */ 41 #define LOG_MAIL (2<<3) /* mail system */ 42 #define LOG_DAEMON (3<<3) /* system daemons */ 43 #define LOG_AUTH (4<<3) /* security/authorization messages */ 44 #define LOG_SYSLOG (5<<3) /* messages generated internally by syslogd */ 45 #define LOG_LPR (6<<3) /* line printer subsystem */ 46 #define LOG_NEWS (7<<3) /* network news subsystem */ 47 #define LOG_UUCP (8<<3) /* UUCP subsystem */ 48 #define LOG_CRON (9<<3) /* clock daemon */ 49 #define LOG_AUTHPRIV (10<<3) /* security/authorization messages (private) */ 50 #define LOG_FTP (11<<3) /* ftp daemon */ 51 52 #define LOG_LOCAL0 (16<<3) /* reserved for local use */ 53 #define LOG_LOCAL1 (17<<3) /* reserved for local use */ 54 #define LOG_LOCAL2 (18<<3) /* reserved for local use */ 55 #define LOG_LOCAL3 (19<<3) /* reserved for local use */ 56 #define LOG_LOCAL4 (20<<3) /* reserved for local use */ 57 #define LOG_LOCAL5 (21<<3) /* reserved for local use */ 58 #define LOG_LOCAL6 (22<<3) /* reserved for local use */ 59 #define LOG_LOCAL7 (23<<3) /* reserved for local use */ 60 61 #endif 62 63