Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++ logging framework suggestions [closed]

Tags:

c++

logging

I'm looking for a C++ logging framework with the following features:

  • 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
like image 211
Warpin Avatar asked Nov 15 '09 01:11

Warpin


People also ask

Is log4j available in C#?

log4j is a popular logging package written in Java. log4j has been ported to the C, C++, C#, Perl, Python, Ruby, and Eiffel languages.

What is Loglib?

DESCRIPTION. This library handles message logging. It is usually used to display error messages on the system console, but such messages can also be sent to a disk file or printer.


2 Answers

Not sure about the configuration from a UI or CLI. I've used both of these logging frameworks at one point or other.

https://sourceforge.net/projects/log4cplus/
https://logging.apache.org/log4cxx/index.html

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.

Update:

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.

like image 193
Casey Avatar answered Oct 13 '22 05:10

Casey


No viewer but you could try pantheios. I have been using it for almost a year now and am quite happy with it.

like image 43
ossandcad Avatar answered Oct 13 '22 07:10

ossandcad