Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
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,...).
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!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question