2001-07-06 01:40:41 -04:00
|
|
|
/*
|
2018-02-23 03:53:12 -05:00
|
|
|
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
2001-07-06 01:40:41 -04:00
|
|
|
*
|
2016-06-27 00:56:38 -04:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2018-02-23 03:53:12 -05:00
|
|
|
*
|
|
|
|
|
* See the COPYRIGHT file distributed with this work for additional
|
|
|
|
|
* information regarding copyright ownership.
|
2001-07-06 01:40:41 -04:00
|
|
|
*/
|
|
|
|
|
|
2007-06-19 19:47:24 -04:00
|
|
|
/* $Id: syslog.h,v 1.7 2007/06/19 23:47:19 tbox Exp $ */
|
2001-07-06 01:40:41 -04:00
|
|
|
|
|
|
|
|
#ifndef _SYSLOG_H
|
|
|
|
|
#define _SYSLOG_H
|
|
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
|
|
/* Constant definitions for openlog() */
|
|
|
|
|
#define LOG_PID 1
|
|
|
|
|
#define LOG_CONS 2
|
|
|
|
|
/* NT event log does not support facility level */
|
|
|
|
|
#define LOG_KERN 0
|
|
|
|
|
#define LOG_USER 0
|
|
|
|
|
#define LOG_MAIL 0
|
|
|
|
|
#define LOG_DAEMON 0
|
|
|
|
|
#define LOG_AUTH 0
|
|
|
|
|
#define LOG_SYSLOG 0
|
|
|
|
|
#define LOG_LPR 0
|
|
|
|
|
#define LOG_LOCAL0 0
|
|
|
|
|
#define LOG_LOCAL1 0
|
|
|
|
|
#define LOG_LOCAL2 0
|
|
|
|
|
#define LOG_LOCAL3 0
|
|
|
|
|
#define LOG_LOCAL4 0
|
|
|
|
|
#define LOG_LOCAL5 0
|
|
|
|
|
#define LOG_LOCAL6 0
|
|
|
|
|
#define LOG_LOCAL7 0
|
|
|
|
|
|
|
|
|
|
#define LOG_EMERG 0 /* system is unusable */
|
|
|
|
|
#define LOG_ALERT 1 /* action must be taken immediately */
|
|
|
|
|
#define LOG_CRIT 2 /* critical conditions */
|
|
|
|
|
#define LOG_ERR 3 /* error conditions */
|
|
|
|
|
#define LOG_WARNING 4 /* warning conditions */
|
|
|
|
|
#define LOG_NOTICE 5 /* normal but signification condition */
|
|
|
|
|
#define LOG_INFO 6 /* informational */
|
|
|
|
|
#define LOG_DEBUG 7 /* debug-level messages */
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
syslog(int level, const char *fmt, ...);
|
2001-07-09 17:06:30 -04:00
|
|
|
|
2001-07-06 01:40:41 -04:00
|
|
|
void
|
|
|
|
|
openlog(const char *, int, ...);
|
2001-07-09 17:06:30 -04:00
|
|
|
|
2001-07-06 01:40:41 -04:00
|
|
|
void
|
|
|
|
|
closelog(void);
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
ModifyLogLevel(int level);
|
2001-07-09 17:06:30 -04:00
|
|
|
|
2001-07-06 01:40:41 -04:00
|
|
|
void
|
|
|
|
|
InitNTLogging(FILE *, int);
|
|
|
|
|
|
2002-07-31 23:43:31 -04:00
|
|
|
void
|
|
|
|
|
NTReportError(const char *, const char *);
|
2001-07-08 01:09:35 -04:00
|
|
|
/*
|
|
|
|
|
* Include the event codes required for logging.
|
|
|
|
|
*/
|
|
|
|
|
#include <isc/bindevt.h>
|
2001-07-06 01:40:41 -04:00
|
|
|
|
|
|
|
|
#endif
|