Log4Cpp使用实例

上传者: qiangzi4646 | 上传时间: 2021-02-23 10:16:48 | 文件大小: 795KB | 文件类型: RAR
自己编译好的log4cpp的DLL 和 LIB
封装了一个使用类,从本地读取配置log级别等信息,可输出多个种类的日志文件,输出示例如下
[2017-02-20 16:09:51.910](NOTICE)Sys : 进入了CPfy_log4cppDlg::OnBnClickedButton1函数
[2017-02-20 16:09:51.911](NOTICE)Sys : 写入系统日志
[2017-02-20 16:09:51.911](NOTICE)Sys : 退出了CPfy_log4cppDlg::OnBnClickedButton1函数
详细见:http://blog.csdn.net/qiangzi4646/article/details/56017080

文件下载

资源详情

[{"title":"( 84 个子文件 795KB ) Log4Cpp使用实例","children":[{"title":"Release","children":[{"title":"Pfy_log4cpp.exe <span style='color:#111;'> 89.00KB </span>","children":null,"spread":false},{"title":"log4cpp_d.dll <span style='color:#111;'> 758.00KB </span>","children":null,"spread":false},{"title":"log4cpp.dll <span style='color:#111;'> 236.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"Pfy_log4cpp","children":[{"title":"stdafx.cpp <span style='color:#111;'> 148B </span>","children":null,"spread":false},{"title":"Release","children":[{"title":"BuildLog.htm <span style='color:#111;'> 9.11KB </span>","children":null,"spread":false}],"spread":true},{"title":"Pfy_log4cpp.cpp <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"Pfy_log4cpp.rc2 <span style='color:#111;'> 367B </span>","children":null,"spread":false},{"title":"Pfy_log4cpp.ico <span style='color:#111;'> 66.19KB </span>","children":null,"spread":false}],"spread":true},{"title":"stdafx.h <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false},{"title":"Pfy_log4cpp.h <span style='color:#111;'> 475B </span>","children":null,"spread":false},{"title":"Pfy_log4cpp.vcproj <span style='color:#111;'> 5.80KB </span>","children":null,"spread":false},{"title":"Pfy_log4cppDlg.h <span style='color:#111;'> 668B </span>","children":null,"spread":false},{"title":"targetver.h <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"Pfy_log4cpp.rc <span style='color:#111;'> 5.20KB </span>","children":null,"spread":false},{"title":"Log4CppPfy.h <span style='color:#111;'> 2.43KB </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 729B </span>","children":null,"spread":false},{"title":"Pfy_log4cppDlg.cpp <span style='color:#111;'> 3.76KB </span>","children":null,"spread":false},{"title":"Log4CppPfy.cpp <span style='color:#111;'> 5.32KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"BuildLog.htm <span style='color:#111;'> 8.65KB </span>","children":null,"spread":false}],"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 2.87KB </span>","children":null,"spread":false}],"spread":false},{"title":"include","children":[{"title":"log4cpp","children":[{"title":"PassThroughLayout.hh <span style='color:#111;'> 360B </span>","children":null,"spread":false},{"title":"Win32DebugAppender.hh <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false},{"title":"AbortAppender.hh <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"Category.hh <span style='color:#111;'> 22.41KB </span>","children":null,"spread":false},{"title":"LayoutsFactory.hh <span style='color:#111;'> 999B </span>","children":null,"spread":false},{"title":"LevelEvaluator.hh <span style='color:#111;'> 534B </span>","children":null,"spread":false},{"title":"SmtpAppender.hh <span style='color:#111;'> 871B </span>","children":null,"spread":false},{"title":"config-win32-stlport-boost.h <span style='color:#111;'> 3.31KB </span>","children":null,"spread":false},{"title":"config-win32.h <span style='color:#111;'> 3.62KB </span>","children":null,"spread":false},{"title":"Export.hh <span style='color:#111;'> 570B </span>","children":null,"spread":false},{"title":"LayoutAppender.hh <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"threading","children":[{"title":"Threading.hh <span style='color:#111;'> 827B </span>","children":null,"spread":false},{"title":"DummyThreads.hh <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false},{"title":"PThreads.hh <span style='color:#111;'> 2.86KB </span>","children":null,"spread":false},{"title":"MSThreads.hh <span style='color:#111;'> 4.91KB </span>","children":null,"spread":false},{"title":"BoostThreads.hh <span style='color:#111;'> 1.46KB </span>","children":null,"spread":false},{"title":"OmniThreads.hh <span style='color:#111;'> 4.57KB </span>","children":null,"spread":false}],"spread":false},{"title":"config-MinGW32.h <span style='color:#111;'> 2.20KB </span>","children":null,"spread":false},{"title":"AppenderSkeleton.hh <span style='color:#111;'> 3.21KB </span>","children":null,"spread":false},{"title":"RemoteSyslogAppender.hh <span style='color:#111;'> 4.45KB </span>","children":null,"spread":false},{"title":"Portability.hh <span style='color:#111;'> 1.27KB </span>","children":null,"spread":false},{"title":"SimpleConfigurator.hh <span style='color:#111;'> 1.70KB </span>","children":null,"spread":false},{"title":"FileAppender.hh <span style='color:#111;'> 2.73KB </span>","children":null,"spread":false},{"title":"OstreamAppender.hh <span style='color:#111;'> 935B </span>","children":null,"spread":false},{"title":"convenience.h <span style='color:#111;'> 2.66KB </span>","children":null,"spread":false},{"title":"NTEventLogAppender.hh <span style='color:#111;'> 2.92KB </span>","children":null,"spread":false},{"title":"StringQueueAppender.hh <span style='color:#111;'> 1.93KB </span>","children":null,"spread":false},{"title":"PatternLayout.hh <span style='color:#111;'> 3.68KB </span>","children":null,"spread":false},{"title":"NDC.hh <span style='color:#111;'> 6.36KB </span>","children":null,"spread":false},{"title":"AppendersFactory.hh <span style='color:#111;'> 1012B </span>","children":null,"spread":false},{"title":"SimpleLayout.hh <span style='color:#111;'> 842B </span>","children":null,"spread":false},{"title":"Priority.hh <span style='color:#111;'> 2.94KB </span>","children":null,"spread":false},{"title":"config-openvms.h <span style='color:#111;'> 1.72KB </span>","children":null,"spread":false},{"title":"BasicLayout.hh <span style='color:#111;'> 852B </span>","children":null,"spread":false},{"title":"Manipulator.hh <span style='color:#111;'> 691B </span>","children":null,"spread":false},{"title":"FactoryParams.hh <span style='color:#111;'> 4.85KB </span>","children":null,"spread":false},{"title":"Filter.hh <span style='color:#111;'> 3.76KB </span>","children":null,"spread":false},{"title":"TriggeringEventEvaluator.hh <span style='color:#111;'> 396B </span>","children":null,"spread":false},{"title":"BasicConfigurator.hh <span style='color:#111;'> 693B </span>","children":null,"spread":false},{"title":"Appender.hh <span style='color:#111;'> 4.43KB </span>","children":null,"spread":false},{"title":"CategoryStream.hh <span style='color:#111;'> 4.08KB </span>","children":null,"spread":false},{"title":"Layout.hh <span style='color:#111;'> 978B </span>","children":null,"spread":false},{"title":"LoggingEvent.hh <span style='color:#111;'> 2.20KB </span>","children":null,"spread":false},{"title":"Configurator.hh <span style='color:#111;'> 709B </span>","children":null,"spread":false},{"title":"IdsaAppender.hh <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false},{"title":"BufferingAppender.hh <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"RollingFileAppender.hh <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"HierarchyMaintainer.hh <span style='color:#111;'> 1.81KB </span>","children":null,"spread":false},{"title":"FixedContextCategory.hh <span style='color:#111;'> 5.50KB </span>","children":null,"spread":false},{"title":"SyslogAppender.hh <span style='color:#111;'> 2.11KB </span>","children":null,"spread":false},{"title":"PropertyConfigurator.hh <span style='color:#111;'> 1.56KB </span>","children":null,"spread":false},{"title":"TimeStamp.hh <span style='color:#111;'> 1.85KB </span>","children":null,"spread":false},{"title":"TriggeringEventEvaluatorFactory.hh <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"Pfy_log4cpp.suo <span style='color:#111;'> 13.50KB </span>","children":null,"spread":false},{"title":"配置输出地址.txt <span style='color:#111;'> 378B </span>","children":null,"spread":false},{"title":"Pfy_log4cpp.sln <span style='color:#111;'> 899B </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"log4cpp_d.dll <span style='color:#111;'> 758.00KB </span>","children":null,"spread":false},{"title":"log4cpp.lib <span style='color:#111;'> 158.19KB </span>","children":null,"spread":false},{"title":"log4cpp_d.lib <span style='color:#111;'> 158.95KB </span>","children":null,"spread":false},{"title":"log4cpp.dll <span style='color:#111;'> 236.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"Clear.bat <span style='color:#111;'> 432B </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"Pfy_log4cpp.exe <span style='color:#111;'> 160.00KB </span>","children":null,"spread":false},{"title":"log4cpp_d.dll <span style='color:#111;'> 758.00KB </span>","children":null,"spread":false},{"title":"log4cpp.dll <span style='color:#111;'> 236.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • 仙踪探寻 :
    感谢分享,很有借鉴意义
    2018-08-15
  • mumusan12321 :
    可以参考一下,再多一些资源就更好了
    2018-06-21
  • chruny :
    可以参考一下
    2018-02-23
  • zhenyoucaia :
    效果还不错
    2018-02-09
  • benben1376 :
    一般般的资源
    2017-10-20

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明