2 * Copyright 2013, 2015 Cloudbase Solutions Srl
4 * Licensed under the Apache License, Version 2.0 (the "License"); you may
5 * not use this file except in compliance with the License.You may obtain
6 * a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the
13 * License for the specific language governing permissions and limitations
20 #define LOG_EMERG 0 /* system is unusable */
21 #define LOG_ALERT 1 /* action must be taken immediately */
22 #define LOG_CRIT 2 /* critical conditions */
23 #define LOG_ERR 3 /* error conditions */
24 #define LOG_WARNING 4 /* warning conditions */
25 #define LOG_NOTICE 5 /* normal but significant condition */
26 #define LOG_INFO 6 /* informational */
27 #define LOG_DEBUG 7 /* debug-level messages */
28 #define LOG_NDELAY 8 /* don't delay open */
30 #define LOG_KERN (0<<3) /* kernel messages */
31 #define LOG_USER (1<<3) /* user-level messages */
32 #define LOG_MAIL (2<<3) /* mail system */
33 #define LOG_DAEMON (3<<3) /* system daemons */
34 #define LOG_AUTH (4<<3) /* security/authorization messages */
35 #define LOG_SYSLOG (5<<3) /* messages generated internally by syslogd */
36 #define LOG_LPR (6<<3) /* line printer subsystem */
37 #define LOG_NEWS (7<<3) /* network news subsystem */
38 #define LOG_UUCP (8<<3) /* UUCP subsystem */
39 #define LOG_CRON (9<<3) /* clock daemon */
40 #define LOG_AUTHPRIV (10<<3) /* security/authorization messages */
41 #define LOG_FTP (11<<3) /* FTP daemon */
43 #define LOG_LOCAL0 (16<<3) /* reserved for local use */
44 #define LOG_LOCAL1 (17<<3) /* reserved for local use */
45 #define LOG_LOCAL2 (18<<3) /* reserved for local use */
46 #define LOG_LOCAL3 (19<<3) /* reserved for local use */
47 #define LOG_LOCAL4 (20<<3) /* reserved for local use */
48 #define LOG_LOCAL5 (21<<3) /* reserved for local use */
49 #define LOG_LOCAL6 (22<<3) /* reserved for local use */
50 #define LOG_LOCAL7 (23<<3) /* reserved for local use */
53 openlog(const char *ident, int option, int facility)
58 syslog(int priority, const char *format, ...)