C++版的log4j log4cplus 1.1.0 RC9 发布
jopen 12年前
C++版的log4j,示例代码: <pre class="brush:cpp; toolbar: true; auto-links: false;">#include <log4cplus/logger.h> #include <log4cplus/configurator.h> #include <iomanip> using namespace log4cplus; int main() { BasicConfigurator config; config.configure(); Logger logger = Logger::getInstance("main"); LOG4CPLUS_WARN(logger, "Hello, World!"); return ; }</pre> <p><a href="/misc/goto?guid=4958341693894518628" target="_blank">log4cplus </a>1.1.0 RC8 发布,改进记录:</p> <ul> <li>Log4jUdpAppender compatibility with Chainsaw was improved. </li> <li>Bugs with TLS and VS 2005 were fixed. </li> <li>An initial .cygport definition was provided. </li> <li>Private symbol hiding was improved. </li> <li>Various compilation issues were fixed.</li> </ul> <p>下载地址:<a class="name" title="Click to download log4cplus-1.1.0-beta1.tar.bz2" href="/misc/goto?guid=4958523868375883541">log4cplus-1.1.0-beta1.tar.bz2</a></p>