Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Boost.Log vs. Boost.Log v2

I am currently evaluating some log frameworks for unmanaged C++.

My question is: what is the difference between Boost.Log and Boost.Log v2?
Is the Api is different? Is it safe to use Boost.Log v2 in a project or should I stick with Boost.Log 1.1?
When will be accepted into Boost? It may suffer major changes in the future?

like image 900
cprogrammer Avatar asked Feb 15 '12 15:02

cprogrammer


People also ask

What is boost logging?

Boost. Log, part of collection of the Boost C++ Libraries, provides tools for adding logging to libraries and applications.

How do you log in C++?

The C++ compiler has two very useful defines for logging: the __FILE__ and __LINE__ defines, which contain the name of the file and the line in which they are placed and can help you track down the location of the error. Because I am using the compiler define, they are automatically inserted into the correct place.


1 Answers

Beware that the version "1.0" available is not being maintained. To receive updates you must use the bleeding edge (trunk) version which might become unstable. Take this into account if you are going to use this version in any serious projects. If you are not afraid to use bleeding edge versions or future breakage, then go for it. It's really nice to use as it is in its current state.

like image 141
cprogrammer Avatar answered Sep 18 '22 17:09

cprogrammer