I just read this post on Stackoverflow and there was one aspect of logging that I didn't see addressed. Independent of the specific logging framework, how do folks handle the fact that most approaches result in logging/trace statements placed all throughout your code, making it more difficult to actually see the meat and potatoes of the code base. Is this just the reality of life or are there techniques/mechanisms to address this, such as perhaps:
- A means of selectively hiding and showing all the logging and tracing statements
- Use of class or method attributes which enable logging
- ...?
I am working in .NET/Visual studio but I suppose my question applies in general.