home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Magazine / wwwoffle-2.1.tar.gz / wwwoffle-2.1 / errors.h < prev    next >
C/C++ Source or Header  |  1997-12-13  |  1KB  |  35 lines

  1. /***************************************
  2.   $Header: /home/amb/wwwoffle/RCS/errors.h 2.3 1997/12/13 11:12:48 amb Exp $
  3.  
  4.   WWWOFFLE - World Wide Web Offline Explorer - Version 2.0.
  5.   Error logging header file.
  6.   ******************/ /******************
  7.   Written by Andrew M. Bishop
  8.  
  9.   This file Copyright 1996,97 Andrew M. Bishop
  10.   It may be distributed under the GNU Public License, version 2, or
  11.   any higher version.  See section COPYING of the GNU Public license
  12.   for conditions under which this file may be redistributed.
  13.   ***************************************/
  14.  
  15.  
  16. #ifndef ERRORS_H
  17. #define ERRORS_H    /*+ To stop multiple inclusions. +*/
  18.  
  19. typedef enum _ErrorLevel
  20. {
  21.  Debug,                         /*+ For debugging, only if DEBUG is defined (not in syslog). +*/
  22.  Inform,                        /*+ General information (not in syslog). +*/
  23.  Important,                     /*+ Important information (notice in syslog). +*/
  24.  Warning,                       /*+ A warning (warning in syslog). +*/
  25.  Fatal                          /*+ A fatal error (err in syslog). +*/
  26. }
  27. ErrorLevel;
  28.  
  29. /* In errors.c */
  30.  
  31. void  InitErrorHandler(char *name,int syslogable,int stderrable);
  32. char *PrintMessage(ErrorLevel errlev,const char* fmt, ...);
  33.  
  34. #endif /* ERRORS_H */
  35.