资 源 简 介
"win-logging" provides a C++/Windows logging module similar to python"s logging or Java"s log4j.
As the following code shows, it allows you to output debug-string by both naitive C(printf) and C++(std::cout) style. Of course, it supports unicode mode, and has confirmation of warning-free on Visual Studio 2008.
printf & std::cout style
logger.info("%s %d",argv[0],argc);logger.info << argv[0] << " " << argc << std::endl;
Set Level or Configuration
logger.setLevel( logger.WARNING );logger.startConfig( "C:\log.txt" );
installation step
1. download & include "logging.h" (1 File)
The code for win-logging is substantively in the public domain (MIT Licence is dummy definition for Google Code) and is thus free for use for any purpose.