The Trace.WriteLine calls are left in our code even after release. So, having fine control over when they are output would be great. This is something we can do with a trace switch. The value of a trace switch can be set using a number or a word. For example, the number 3 can be replaced with the word Info, as shown in the following table:

Get hands-on with 1400+ tech skills courses.