syslog.h revision 70e5a7403f0e0a3bd292b8287c5fed5772c15270
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt/*
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt * Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC")
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt * Copyright (C) 2001, 2002 Internet Software Consortium.
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt *
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt * Permission to use, copy, modify, and/or distribute this software for any
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt * purpose with or without fee is hereby granted, provided that the above
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt * copyright notice and this permission notice appear in all copies.
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt *
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
e939674d53a127ddeeaf4b41fd72933f0b493308Mark Andrews * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt * PERFORMANCE OF THIS SOFTWARE.
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt */
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt/* $Id: syslog.h,v 1.7 2007/06/19 23:47:19 tbox Exp $ */
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#ifndef _SYSLOG_H
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#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, ...);
void
openlog(const char *, int, ...);
void
closelog(void);
void
ModifyLogLevel(int level);
void
InitNTLogging(FILE *, int);
void
NTReportError(const char *, const char *);
/*
* Include the event codes required for logging.
*/
#include <isc/bindevt.h>
#endif