C++版的log4j log4cplus,log4cplus 1.0.4.1 发布
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.0.4.1 是一个 bugfix 版本。</p>