Main Page | Modules | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages | Search

vvLog.h

Go to the documentation of this file.
00001 
00009 #ifndef __VVLOG_H__
00010 #define __VVLOG_H__
00011 
00012 #ifdef __cplusplus
00013 extern "C" {
00014 #endif /* __cplusplus */
00015 
00016 #include <stdio.h>
00017 #include <stdlib.h>
00018 #include <sys/types.h>
00019 #include <unistd.h>
00020 
00021 
00022     /*
00023  * VVlog prints messages when called with 'level' set equal or greater
00024  * than the level set via a previous call to VVlogSetLevel.
00025  */
00026 void VVlogSetLevel( int level );
00027 int VVlogGetLevel( void );
00028 void VVlog( int level, char *format, ... );
00029 
00030 #define VVLOG_ERROR     1
00031 #define VVLOG_WARNING   250
00032 #define VVLOG_INFO      500
00033 #define VVLOG_MORE      510
00034 #define VVLOG_DEBUG     515
00035 #define VVLOG_ALL       520
00036 
00037 // These are in the newer form. We're changing the names in the library
00038 // eventually.
00039 //#define vvLog VVlog(VVLOG_ALL,"[%d] Trying system at %s, line %d\n", getpid(), __FILE__, __LINE__); system("cp -f /tmp/foo /tmp/bar"); VVlog
00040 #define vvLog VVlog
00041 #define vvLOG vvLog
00042 #define vvLogSetLevel VVlogSetLevel
00043 #define vvLogGetLevel VVlogGetLevel
00044 
00045 extern FILE * g_logFile ;
00046 
00047 #ifdef __cplusplus
00048 }
00049 #endif /* __cplusplus */
00050 
00051 #endif // __VVLOG_H__

Generated on Thu Dec 11 09:32:13 2003 for OCR Shop XTR/API User Documentation by doxygen 1.3.2