Tell me more ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I got following requirements,
1. less than 10k, better in single or two source files
2. logging by priorities
3. multi-threading safe
4. cross-platform, in c or c++

thanks

share|improve this question

2 Answers

up vote 3 down vote accepted

There are plenty. Ezlogger suits you best given your requirements. It is small enough and distributed as bunch of hpp files.

share|improve this answer
Ezlooger looks great. I prefer these c-style loggers, and the size is much smaller than log4c/log4cpp. Thanks. – fifth Dec 8 '11 at 13:02

Boost log maybe what you are looking for, although I do not know of its status as part of the Boost suite.

share|improve this answer
thanks, but boost was not in my view. I'm keeping avoiding to use boost since it's not that much portable. – fifth Dec 8 '11 at 13:06
1  
I guess it depends what you mean by portable... – Sardathrion Dec 8 '11 at 13:31
Sure. In some cases, stlport was only compromise which I could take, so boost was not portable for me. – fifth Dec 9 '11 at 1:16

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.