W
W
wrewolf2012-01-17 11:35:05
C++ / C#
wrewolf, 2012-01-17 11:35:05

Good logger for C++?

It is required to show the name of the function and the line number in the file where the fall occurred.
Well, or just a good logger with examples of use, otherwise you are tired of cycling

Answer the question

In order to leave comments, you need to log in

5 answer(s)
O
okazymyrov, 2012-01-17
@okazymyrov

And printf("%s: %d",__FUNCTION__,__LINE__) doesn't work?
I have this define:
#define LOG() printf("~~~~ %s: %d\n",__FUNCTION__,__LINE__)
You can write to stderr if needed (fprintf(stderr,...).

A
Akson87, 2012-01-17
@Akson87

log4cxx

N
northicewind, 2012-01-17
@northicewind

I use Boost.Log so far everyone is happy with it.

D
Dmitry, 2012-01-17
@EvilsInterrupt

First of all, I would advise you to climb into Open Source projects from Google. For one simple reason: maintainability. As a rule, those projects that they posted, they "live". The logger from google is very good!

L
Lau, 2013-10-06
@Lau

code.google.com/p/baical/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question