[C++] Log library recommendation

Started by
3 comments, last by cache_hit 14 years, 1 month ago
I'm looking for a library to use as a logging library in a C++ game. I've been using up to now my own version of evilsteve's work, but for some specific reasons it's not possible anymore. Before re-writing the library again, I've decided to check if there's anything already out there that could suit my needs. The requirements are: - Simple, both to configure and to use. - Conditional compilation (Release/Debug) so there is no overhead in Release mode. I've been googling and fond quite a few alternatives, but none that seemed what I was looking for. So I thought I'd gather some opinions from the gamedev crowd. So, any recommendations?
Advertisement
check out log4cpp http://log4cpp.sourceforge.net/
Quote:Original post by D3DXVECTOR3
check out log4cpp http://log4cpp.sourceforge.net/

Seconded.
I've heard good things about Pantheios. It's supposed to be a lot more lightweight than Log4Cpp.
If you're interested in logging I would recommend experimenting with the logging library that will go up for boost's review soon. This is of course assuming you even use boost. It goes up for Review next month, and from what I've used of it so far, it is very solid and fits better into my needs than Log4cpp or any other logging libraries I've tried. You can access it from the Review Schedules page:

http://www.boost.org/community/review_schedule.html

If you have any problems with it, you are also free to participate in the review next month and help the author improve it.

This topic is closed to new replies.

Advertisement