Related questions
How to trace every method called
I have an existing project where I would like to find out all calls being made and maybe dump into a log file.
I had a look at this thread, but didnt help much.
I tried PostSharp, and the example …
How to use TraceSource across classes
I was recently studying documentation on TraceSource. Microsift says that TraceSource is a new way and should be used instead of old Trace class.
// create single TraceSource instance to be used for logging
static TraceSource ts = new TraceSource("TraceTest");
// somewhere …
TextWriterTraceListener does not work
Config file:
<system.diagnostics>
<trace>
<listeners>
<add name="Console" type="System.Diagnostics.ConsoleTraceListener" initializeData="false"></add>
<add name="Text" type="System.Diagnostics.TextWriterTraceListener" initializeData="D:\uat\logs\bifit.log" …