A
download test_util.cpp
Language: C++
LOC: 22
Project Info
grub.org - Distributed Internet Crawler(grub)
Server: SourceForge
Type: cvs
...ge\g\grub\grub\client\util\
   alt_ftw.c
   alt_ftw.h
   bin_test_util.dsp
   clog.cpp
   clog.h
   ConfigFileInfo.h
   crc.h
   crc_32.c
   crc_32.cpp
   crc_32.h
   crc_test.c
   crc_test.cpp
   crc32.c
   crc32.h
   dbl_list.c
   dbl_list.h
   delay.cpp
   delay.h
   diagnose.h
   fc32.c
   file_data.c
   file_data.h
   getopt.c
   getopt.h
   grubconf.c
   grubconf.h
   GrubExp.cpp
   GrubExp.h
   Gui.cpp
   Gui.h
   intl.h
   lib_util.dsp
   lockfile.cpp
   lockfile.h
   Makefile.am
   parsecfg.c
   parsecfg.h
   platform.h
   rmfiles.c
   rmfiles.h
   ServerSettings.cpp
   ServerSettings.h
   sniptype.h
   StatusInterface.cpp
   StatusInterface.h
   strip_url.c
   strip_url.h
   test_util.cpp

#include <stdio.h>
#include "StatusInterface.h"
extern "C" {
#include "grubconf.h"
}

#include "clog.h"

Config_Info Config_File_Info;

int main( int argc, char *argv[] )
{
	int i = 0;

	int ret = readGrubConfig(&Config_File_Info);

	clog_init( "clog_test.log" ); 
	
	CLog( GCLOG_TRACE, "Test GCLOG_TRACE! %d", i++);
	CLog( GCLOG_INFO, "Test GCLOG_INFO! %d", i++);
	CLog( GCLOG_ERR, "Test GCLOG_ERR! %d", i++);
	CLog( GCLOG_DEBUG, "Test GCLOG_DEBUG! %d", i++);
	CLog( GCLOG_ALERT, "Test GCLOG_ALERT! %d", i++);
	CLog( GCLOG_EMERG, "Test GCLOG_EMERG! %d", i++);
	CLog( GCLOG_CRIT, "Test GCLOG_CRIT! %d", i++);

	clog_uninit();	

	return 0;
}

About Koders | Resources | Downloads | Support | Black Duck | Terms of Service | DMCA | Privacy Policy | Contact Us