今天boss给我一个叫log4cxx的三方库,让我写文件登陆日志,求大神教教小弟这个库怎么配置 怎么用,在网上看了好久 都没配出来 希望能给一个完整点的答案谢谢啦

解决方案 »

  1.   

    #include“头文件.h”
    #program comment(lib,"库文件.lib")
      

  2.   

    按格式写好配置文件, 代码里加头文件,调函数向LOG文件里写信息
      

  3.   

    我弄出来之后 他每次都是显示
    log4cxx: Could not read configuration file [./log.properties].
    log4cxx: No appender could be found for logger (fa).
    log4cxx: Please initialize the log4cxx system properly.
    他为什么每次都是没找到我创建的那个文件呢  相对路径绝对路径我都试过了
      

  4.   

    C++日志库,log4cplus,log4cpp使用资料手册