errors.h
上传用户:seven77cht
上传日期:2007-01-04
资源大小:486k
文件大小:1k
- /***************************************
- $Header: /home/amb/wwwoffle/v2.4/RCS/errors.h 2.4 1998/05/31 15:43:04 amb Exp $
- WWWOFFLE - World Wide Web Offline Explorer - Version 2.2.
- Error logging header file.
- ******************/ /******************
- Written by Andrew M. Bishop
- This file Copyright 1996,97,98 Andrew M. Bishop
- It may be distributed under the GNU Public License, version 2, or
- any higher version. See section COPYING of the GNU Public license
- for conditions under which this file may be redistributed.
- ***************************************/
- #ifndef ERRORS_H
- #define ERRORS_H /*+ To stop multiple inclusions. +*/
- typedef enum _ErrorLevel
- {
- ExtraDebug, /*+ For extra debugging (not in syslog). +*/
- Debug, /*+ For debugging (debug in syslog). +*/
- Inform, /*+ General information (info in syslog). +*/
- Important, /*+ Important information (notice in syslog). +*/
- Warning, /*+ A warning (warning in syslog). +*/
- Fatal /*+ A fatal error (err in syslog). +*/
- }
- ErrorLevel;
- /* In errors.c */
- void InitErrorHandler(char *name,int syslogable,int stderrable);
- char *PrintMessage(ErrorLevel errlev,const char* fmt, ...);
- #endif /* ERRORS_H */