オープンソースログシステム-log 4 cplus(一)
3690 ワード
シシシシシ菗菗简介
log4cplus C++ , java log4j . Apache Software License
。 Tad E. Smith。log4cplus 、 、 ,
、 、 、 ; 、 、
NT event log、 ; 。
### ###
log4cplus http://log4cplus.sourceforge.net
### ###
1. linux
tar xvzf log4cplus-x.x.x.tar.gz
cd log4cplus-x.x.x
./configure --prefix=/where/to/install
make
make install
:/usr/local, , 。
2. windows
, msvc8 dsp slb , visual studio 2005 ,
"log4cplus_dll class" dll, "log4cplus_static class" lib. ,
: [email protected].
### ###
1. linux
Makefile /usr/local/lib/liblog4cplus.a( ) -llog4cplus( ) ,
/usr/local/include/log4cplus 。 , ,
LD_LIBRARY_PATH , : , /etc/ld.so.conf ,
/usr/local/lib, ldconfig 。
2. windows
"log4cplus_dll class" "log4cplus_static class" dsp ,
, ,
"project/setting/C++" preprocessor definitions LOG4CPLUS_STATIC。
, log4cplus , , 。
Layouts : , .
Appenders: , , .
, ,socket 。
Logger :logger , ,
, logger。
Categories : , (hierarchy) , ,
logger 。
Priorities : , TRACE, DEBUG, INFO, WARNING, ERROR, FATAL。
log4cplus , , , log4cplus。