3 #define ERRLOG_H_VERSION "$Id: errlog.h,v 1.1 2001/05/13 21:57:06 administrator Exp $"
4 /*********************************************************************
6 * File : $Source: /home/administrator/cvs/ijb/errlog.h,v $
8 * Purpose : Log errors to a designated destination in an elegant,
11 * Copyright : Written by and Copyright (C) 2001 the SourceForge
12 * IJBSWA team. http://ijbswa.sourceforge.net
14 * Based on the Internet Junkbuster originally written
15 * by and Copyright (C) 1997 Anonymous Coders and
16 * Junkbusters Corporation. http://www.junkbusters.com
18 * This program is free software; you can redistribute it
19 * and/or modify it under the terms of the GNU General
20 * Public License as published by the Free Software
21 * Foundation; either version 2 of the License, or (at
22 * your option) any later version.
24 * This program is distributed in the hope that it will
25 * be useful, but WITHOUT ANY WARRANTY; without even the
26 * implied warranty of MERCHANTABILITY or FITNESS FOR A
27 * PARTICULAR PURPOSE. See the GNU General Public
28 * License for more details.
30 * The GNU General Public License should be included with
31 * this file. If not, you can view it at
32 * http://www.gnu.org/copyleft/gpl.html
33 * or write to the Free Software Foundation, Inc., 59
34 * Temple Place - Suite 330, Boston, MA 02111-1307, USA.
39 *********************************************************************/
46 /* Debug level for errors */
48 #define LOG_LEVEL_GPC 0x0001
49 #define LOG_LEVEL_CONNECT 0x0002
50 #define LOG_LEVEL_IO 0x0004
51 #define LOG_LEVEL_HEADER 0x0008
52 #define LOG_LEVEL_LOG 0x0010
54 #define LOG_LEVEL_FRC 0x0020
55 #define LOG_LEVEL_REF 0x0040
58 /* Following are always on: */
59 #define LOG_LEVEL_ERROR 0x1000
60 #define LOG_LEVEL_INFO 0x2000
62 extern void init_error_log(const char *prog_name, const char *logfname, int debuglevel);
63 extern void log_error(int loglevel, char *fmt, ...);
65 /* Revision control strings from this header and associated .c file */
66 extern const char errlog_rcs[];
67 extern const char errlog_h_rcs[];
73 #endif /* ndef _ERRLOG_H */