The .NET Framework's Trace class lets you record details about your application's runtime behavior. Tracing gives you insight into your running code, but using it "as is" produces unwieldy code and ...
Stop Googling. The answer is staring you right in the face—you just have to read it.