getting started with log4cpp in windows

半腔热情 提交于 2019-12-06 01:45:38

问题


I need to do logging in a C++ application. After googling for a while, I decided to use log4cpp.

  1. is that a safe option to go with, or is there something better out there?
  2. How do I get started with installation and importing it to my application using Windows XP, Visual Studio 2005?

TIA


回答1:


I've used Log4cpp in the past and it does the job, though bear in mind the project has been inactive since 2007. There are also the following alternatives:

  • Apache's log4cxx which is still active.
  • Matthew Wilson's Pantheios library.
  • Log4cplus.

As for getting started, does the documentation not cover this?




回答2:


The framework I'm using, wxWidgets, comes with logging features. The logging is easy and comes in different flavors (such as debug only and logging by priorities). wxWidgets comes with installation instructions, search on 'MSW'.

Which ever system you choose, you may want to standardize you log output. Creating an output format that can be imported into a database or spreadsheet can be very helpful.



来源:https://stackoverflow.com/questions/2209134/getting-started-with-log4cpp-in-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!