How to save trace info into a file

asp.net, trace, web-config

Solution

Simply enabling tracing the way your have is not enough - you need to configure what to trace and what to do with the trace.

See Trace Listeners and Configuring Tracing on MSDN.

Problem

I am tracing my ASPX page by enabling tracing in `web.config` (`<trace enabled="true" pageOutput="true"/>`) How could i save this information (specifically the request headers) into a log file. Thanks for sharing your valuable time.

Original source