Find a simple explanation for using trace logging

I have seen several projects that use the Trace function to capture events and stream them to a log file. I was unable to find a simple guide that will show me how to configure Trace to capture and write to the specified log file. Does anyone have recommendations for links or provides some simple steps to follow?

+3
source share
4 answers

I came across an MSDN article that really helps. Sorry, I did not find it before posting the question, but maybe others may have the same question and they did not find this link.

+1
source

Trace TraceListeners. , , System.Diagnostics, :

  • ConsoleTraceListener ()
  • DefaultTraceListener (Visual Studio/Debugger)
  • DelimitedListTraceListener (TextWriter, )
  • EventLogTraceListener (EventLog - , System.Diagnostics.EventLog)
  • TextWriterTraceListener (TextWriter - )

, , TraceListener, , . , , , ​​ log4net.

, , , List List List. , , Trace . , , , , , .

+3

EventLog, FormattedEventLogTraceListener ( ).

.

?

0

All Articles