I have this in my web config file:
--Other web config stuff here--
switchType="System.Diagnostics.SourceSwitch" >
delimiter="|"
initializeData="textlog.txt"
traceOutputOptions="ProcessId, DateTime" />
And this is the code behind and aspx page.
protected void Page_Load(object sender, EventArgs e)
{
TraceSource source = new TraceSource("mySource");
source.TraceEvent(TraceEventType.Verbose, 0, "Information Message");
}
However, when I run the page, I don't get a log file generated.
Can someone please explain why and how?
Thanks
Jeff
Replies
Know the answer? Post it — somebody with the same question will find it here.