C ++日志框架建议

编程入门 行业动态 更新时间:2024-10-07 22:30:13
本文介绍了C ++日志框架建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在寻找一个具有以下功能的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 ++日志框架建议

本文发布于:2023-10-23 02:38:59,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1519498.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:框架   建议   日志

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!