Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

errlog.h File Reference

Log errors to a designated destination in an elegant, printf-like fashion. More...

Go to the source code of this file.

Defines

#define ERRLOG_H_VERSION   "$Id: errlog.h,v 2.1 2002/06/04 17:22:36 jongfoster Exp $"
#define LOG_LEVEL_GPC   0x0001
#define LOG_LEVEL_CONNECT   0x0002
#define LOG_LEVEL_IO   0x0004
#define LOG_LEVEL_HEADER   0x0008
#define LOG_LEVEL_LOG   0x0010
#define LOG_LEVEL_RE_FILTER   0x0040
#define LOG_LEVEL_DEANIMATE   0x0100
#define LOG_LEVEL_CLF   0x0200
#define LOG_LEVEL_CGI   0x0800
#define LOG_LEVEL_INFO   0x1000
#define LOG_LEVEL_ERROR   0x2000
#define LOG_LEVEL_FATAL   0x4000

Functions

void init_error_log (const char *prog_name, const char *logfname, int debuglevel)
void log_error (int loglevel, char *fmt,...)

Variables

const char errlog_rcs []
const char errlog_h_rcs []


Detailed Description

Log errors to a designated destination in an elegant, printf-like fashion.

Log:
errlog.h,v
Revision 2.1 2002/06/04 17:22:36 jongfoster Adding comments

Revision 2.0 2002/06/04 14:34:21 jongfoster Moving source files to src/

Revision 1.13 2002/03/26 22:29:54 swa we have a new homepage!

Revision 1.12 2002/03/24 13:25:43 swa name change related issues

Revision 1.11 2002/03/06 23:02:57 jongfoster Removing tabs

Revision 1.10 2001/09/13 20:08:06 jongfoster Adding support for LOG_LEVEL_CGI

Revision 1.9 2001/07/30 22:08:36 jongfoster Tidying up defines:

Revision 1.8 2001/07/29 18:43:08 jongfoster Changing ifdef _FILENAME_H to FILENAME_H_INCLUDED, to conform to ANSI C rules.

Revision 1.7 2001/07/19 19:02:53 haroon Added define for LOG_LEVEL_POPUPS

Revision 1.6 2001/07/13 13:59:22 oes

Revision 1.5 2001/05/26 17:25:14 jongfoster Added support for CLF (Common Log Format) and fixed LOG_LEVEL_LOG

Revision 1.4 2001/05/25 21:56:06 jongfoster Added FIXME comment to (broken) LOG_LEVEL_LOG

Revision 1.3 2001/05/22 18:46:04 oes

Revision 1.2 2001/05/20 01:11:40 jongfoster Added support for LOG_LEVEL_FATAL Renamed LOG_LEVEL_FRC to LOG_LEVEL_FORCE, and LOG_LEVEL_REF to LOG_LEVEL_RE_FILTER

Revision 1.1.1.1 2001/05/15 13:58:51 oes Initial import of version 2.9.3 source tree


Define Documentation

#define LOG_LEVEL_CGI   0x0800
 

Log CGI and template handling features.

#define LOG_LEVEL_CLF   0x0200
 

Log in Common Log File format.

Note that for properly formatted log files you should disable all the other log settings.

#define LOG_LEVEL_CONNECT   0x0002
 

Log connecting to the server.

#define LOG_LEVEL_DEANIMATE   0x0100
 

Log GIF deanimation.

#define LOG_LEVEL_ERROR   0x2000
 

Log error messages.

#define LOG_LEVEL_FATAL   0x4000
 

Write a message to the log and exit the program.

#define LOG_LEVEL_GPC   0x0001
 

Log GET/POST/CONNECT requests.

#define LOG_LEVEL_HEADER   0x0008
 

Log header parsing and modifying.

#define LOG_LEVEL_INFO   0x1000
 

Log informative messages (program version etc).

#define LOG_LEVEL_IO   0x0004
 

Log ...

what? FIXME.

#define LOG_LEVEL_LOG   0x0010
 

Log ...

what? FIXME.

#define LOG_LEVEL_RE_FILTER   0x0040
 

Log PCRS feature.


Function Documentation

void init_error_log const char *    prog_name,
const char *    logfname,
int    debuglevel
 

Initializes the logging module.

Must call before calling log_error.

Parameters:
prog_name  The program name.
logfname  The logfile name, or NULL for stderr.
debuglevel  The debugging level.
Returns:
N/A

void log_error int    loglevel,
char *    fmt,
...   
 

This is the error-reporting and logging function.

Parameters:
loglevel  the type of message to be logged
fmt  the main string we want logged, printf-like
...  arguments to be inserted in fmt (printf-like).
Returns:
N/A


Variable Documentation

const char errlog_h_rcs[]
 

Version information about errlog.h.

const char errlog_rcs[]
 

Version information about errlog.c.


Generated on Tue Jun 4 18:54:49 2002 for Privoxy 3.1.1 by doxygen1.2.15