【问题标题】:how to set configuration of log4cpp for visual studio 2008如何为 Visual Studio 2008 设置 log4cpp 的配置
【发布时间】:2015-11-20 09:59:56
【问题描述】:

我想在我的代码中使用 log4cpp 库进行日志记录。但是,对于 windows 平台,我不知道如何配置库。我正在使用 Visual Studio 2008。 任何帮助将不胜感激。

【问题讨论】:

    标签: c++ logging log4cxx log4cpp


    【解决方案1】:

    使用子目录 msvc8 中的工作区和项目文件。 (您可能需要根据您的特定需求调整 include/log4cpp/config-win32.h 和项目文件)。

    您也可以选择使用 cygwin 编译源代码并从库中调用导出的函数。

    【讨论】:

    • 我想在 windows 平台上使用这个库,而不是在 linux 上。
    • cygwin 提供了在 windows 环境下工作的库。您可以通过加载 dll 在代码中使用导出的函数。
    • 还有以下替代方案: 1) Apache 的 log4cxx 仍然处于活动状态。 2) Matthew Wilson 的 Pantheios 图书馆。 3)Log4cplus。
    猜你喜欢
    • 1970-01-01
    • 2011-01-25
    • 1970-01-01
    • 2011-06-05
    • 1970-01-01
    • 1970-01-01
    • 2011-01-16
    • 2011-01-03
    • 2012-01-04
    相关资源
    最近更新 更多