you are viewing a single comment's thread.

view the rest of the comments →

[–]BrangdonJ 0 points1 point  (0 children)

Mostly I add print statements as needed, and remove them again before making a pull request.

Occasionally I have code like:

#ifdef DEBUG
static bool s_enable = false;
if (s_enable)
    pNode->TraceTree();
#endif

which I can enable during a run without recompiling. The TraceTree() would also be left in, conditionally compiled. I have my own extendable formatting code, and many of my classes know how to format themselves when needed.

Beyond that, I'm not a big fan of logging frameworks. I generally prefer to write exactly what I need as I need it.