Enabling debug/trace logging only for certain parts of code as needed? - C#