What is trace? Describe its working.Trace produces messages about program conditions even after application is compiled and released without interrupting application execution.
It's Working
1. Steps to add Trace in the code. 2. Create an instance of TextWriterTraceListener and add it to the Listeners collection. 3. Configure the TextWriterTraceListener to write output to a text file. 4. Create Trace switches that control when Trace statements are executed. 5. Compile and deploy the application with Trace defined. 6. Enable the Trace switches in the application .config file.
|