00001
00009 #ifndef __VVLOG_H__
00010 #define __VVLOG_H__
00011
00012 #ifdef __cplusplus
00013 extern "C" {
00014 #endif
00015
00016 #include <stdio.h>
00017 #include <stdlib.h>
00018 #include <sys/types.h>
00019 #include <unistd.h>
00020
00021
00022
00023
00024
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
00038
00039
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
00050
00051 #endif // __VVLOG_H__