我正在寻找一个具有以下功能的C ++日志框架:
I'm looking for a C++ logging framework with the following features:
- 日志具有严重性(信息,警告,关键等)
- 日志使用模块名称标记
- 框架有一个UI(或CLI),用于配置我们实际记录的模块
- 有一个查看器,可让我根据模块,严重程度,模块名称,错误名称等进行搜索。 >
- logs have a severity (info, warning, error, critical, etc)
- logs are tagged with a module name
- framework has a UI (or CLI) to configure for which modules we will actually log to file, and the minimum severity required for a log to be written to file.
- has a viewer which lets me search per module, severity, module name, error name, etc
不知道来自UI或CLI的配置。我已经使用了这两个日志框架在一个点或其他。
Not sure about the configuration from a UI or CLI. I've used both of these logging frameworks at one point or other.
sourceforge/projects/log4cplus/ logging.apache/log4cxx/index.html
这不会太难驱动你的日志基于可以手动或通过快速和肮脏的GUI或CLI应用程序编辑的配置文件。
It wouldn't be too hard to drive your logging based on a configuration file that could be editable by hand or through a quick and dirty GUI or CLI app. Might be a bit harder to adjust these dynamically but not too bad.
更新:
它看起来像提议的Boost.Log现在位于 Boost 1.54 ,这是一个稳定的版本。如果你已经使用Boost比我会看看它。
It looks like the proposed Boost.Log is now in Boost 1.54 which is at a stable release. If you are already using Boost than I would take a look at it.
更多推荐
C ++日志框架建议
发布评论