91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

?log4z log4z 是一款開源的C++輕量級日志庫. 他提供了在C++程序中使用日志和跟蹤調試的功能. log4z的優點 1. MIT開源授權 無限制使用. 2. 輕量級, 跨平臺 可在linux與windows上共同使用. 3. 完整的日志優先級控制. 4. 多日志分流 線程安全. 5. 可通過配置文件全程配置. 6. 屏幕日志為彩色輸出, 信息簡約整潔.

資源截圖

代碼片段和文件信息


/*
?*?Log4z?License
?*?-----------
?*?
?*?Log4z?is?licensed?under?the?terms?of?the?MIT?license?reproduced?below.
?*?This?means?that?Log4z?is?free?software?and?can?be?used?for?both?academic
?*?and?commercial?purposes?at?absolutely?no?cost.
?*?
?*?
?*?===============================================================================
?*?
?*?Copyright?(C)?2012?YaweiZhang?.
?*?
?*?Permission?is?hereby?granted?free?of?charge?to?any?person?obtaining?a?copy
?*?of?this?software?and?associated?documentation?files?(the?“Software“)?to?deal
?*?in?the?Software?without?restriction?including?without?limitation?the?rights
?*?to?use?copy?modify?merge?publish?distribute?sublicense?and/or?sell
?*?copies?of?the?Software?and?to?permit?persons?to?whom?the?Software?is
?*?furnished?to?do?so?subject?to?the?following?conditions:
?*?
?*?The?above?copyright?notice?and?this?permission?notice?shall?be?included?in
?*?all?copies?or?substantial?portions?of?the?Software.
?*?
?*?THE?SOFTWARE?IS?PROVIDED?“AS?IS“?WITHOUT?WARRANTY?OF?ANY?KIND?EXPRESS?OR
?*?IMPLIED?INCLUDING?BUT?NOT?LIMITED?TO?THE?WARRANTIES?OF?MERCHANTABILITY
?*?FITNESS?FOR?A?PARTICULAR?PURPOSE?AND?NONINFRINGEMENT.??IN?NO?EVENT?SHALL?THE
?*?AUTHORS?OR?COPYRIGHT?HOLDERS?BE?LIABLE?FOR?ANY?CLAIM?DAMAGES?OR?OTHER
?*?LIABILITY?WHETHER?IN?AN?ACTION?OF?CONTRACT?TORT?OR?OTHERWISE?ARISING?FROM
?*?OUT?OF?OR?IN?CONNECTION?WITH?THE?SOFTWARE?OR?THE?USE?OR?OTHER?DEALINGS?IN
?*?THE?SOFTWARE.
?*?
?*?===============================================================================
?*?
?*?(end?of?COPYRIGHT)
?*/

#include?“log4z.h“

#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
//#include?
#include?
#include?
#include?
#include?

#ifdef?WIN32
#include?
#include?
#include?
#include?
#include?
#pragma?comment(lib?“shlwapi“)
#pragma?warning(disable:4996)
#else
#include?
#include?
#include?
#include?
#include?
#include
#include?
#include?
#include?
#include?
#include?
#endif




_ZSUMMER_BEGIN
_ZSUMMER_LOG4Z_BEGIN





void?SleepMillisecond(unsigned?int?ms)
{
#ifdef?WIN32
::Sleep(ms);
#else
usleep(1000*ms);
#endif
}

unsigned?int?GetTimeMillisecond()
{
#ifdef?WIN32
return?::GetTickCount();
#else
struct?timeval?tm;
gettimeofday(&tm?NULL);
return?(tm.tv_sec?*?1000?+?(tm.tv_usec/1000));
#endif
}


bool?TimeToTm(time_t?t?tm?*?tt)
{
#ifdef?WIN32
if?(localtime_s(tt?&t)?==?0)
{
return?true;
}
return?false;
#else
if?(localtime_r(&t?tt)?!=?NULL)
{
return?true;
}
return?false;
#endif
}

time_t?TmToTime(tm?*?tt)
{
return?mktime(tt);
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-01-26?05:49??log4z-master\
?????文件????????2178??2013-01-26?05:49??log4z-master\.gitignore
?????文件????????1484??2013-01-26?05:49??log4z-master\COPYRIGHT
?????文件????????1014??2013-01-26?05:49??log4z-master\HISTORY
?????文件?????????836??2013-01-26?05:49??log4z-master\README.md
?????目錄???????????0??2013-01-26?05:49??log4z-master\doc\
?????文件??????235520??2013-01-26?05:49??log4z-master\doc\log4z_chs.doc
?????文件??????235520??2013-01-26?05:49??log4z-master\doc\log4z_en.doc
?????文件???????22692??2013-01-26?05:49??log4z-master\log4z.cpp
?????文件????????6577??2013-01-26?05:49??log4z-master\log4z.h
?????目錄???????????0??2013-01-26?05:49??log4z-master\project\
?????文件????????3861??2013-01-26?05:49??log4z-master\project\advanced_test.cpp
?????文件????????1244??2013-01-26?05:49??log4z-master\project\advanced_test.sln
?????文件????????6737??2013-01-26?05:49??log4z-master\project\advanced_test.vcproj
?????文件?????????317??2013-01-26?05:49??log4z-master\project\config.xml
?????文件?????????490??2013-01-26?05:49??log4z-master\project\fast_test.cpp
?????文件????????1236??2013-01-26?05:49??log4z-master\project\fast_test.sln
?????文件????????6725??2013-01-26?05:49??log4z-master\project\fast_test.vcproj
?????文件?????????178??2013-01-26?05:49??log4z-master\project\makefile

評論

共有 條評論