log4cplus 1.0.4 RC11 发布

红薯
 红薯
发布于 2010年10月25日
收藏 2

C++版的log4j,示例代码:

#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 0;
}

Changes:

1. A deadlock caused by double locking when using ConfigurationWatchDogThread was fixed.
2. Portability to HP-UX and aCC compiler was improved.
3. The %b PatternLayout format specifier was added, which expands to the file component of a file path.
4. A compilation error on AIX in socket-unix.cxx was fixed.
5. An infinite loop in Hierarchy::updateParents() when logger hierarchy name starts with a dot was fixed.
6. An infinite loop in PatternParser::extractOption() on missing "}" was fixed

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处,尊重他人劳动共创开源社区。
转载请注明:文章转载自 OSCHINA 社区 [http://www.oschina.net]
本文标题:log4cplus 1.0.4 RC11 发布
加载中
返回顶部
顶部