GarlicSim icon indicating copy to clipboard operation
GarlicSim copied to clipboard

any good way to add logging without contaminating the codebase?

Open cool-RR opened this issue 15 years ago • 2 comments

cool-RR avatar Dec 10 '09 13:12 cool-RR

I believe that good logging can replace many code comments. I've recently been adding logging (quite a lot of debug stuf) to my program and it hasn't made the code any worse.

sproaty avatar Jul 06 '11 20:07 sproaty

Yeah, I guess it helps sometimes. Just as long as you don't have log lines like "Entering the foobar function" like some codebases that I have to work for in contract jobs do.

cool-RR avatar Jul 07 '11 09:07 cool-RR