Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Better logging library for C++ [closed]

Tags:

c++

logging

In our project now we using log4cxx, but those library don't develope some years, also we have some problems with it. Could you advise some library for logging in C++. Library must support multithreade logging, system-log. Also it'll be good if it support logging via << operator. Also lib license must be very democracy - like boost, apache etc Crossplatform support. Must support linux, windows. Better if it support solaris, aix, hp-ux, but it's not necessary.

like image 258
Olympian Avatar asked Jul 14 '11 11:07

Olympian


2 Answers

boost::log is probably the most versatile and well-written logging library I've seen. It's pretty complicated but really genius at the same time. And it does everything you can think of and then some more.

like image 178
stijn Avatar answered Sep 21 '22 01:09

stijn


I use the glog library, by google (because I could not install Boost.Log easily). It is both simple to use and powerfull.

like image 32
rafak Avatar answered Sep 21 '22 01:09

rafak