Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# simplest trace or log

Tags:

c#

logging

trace

What is the simplest way to do a trace or log in C# windows form application?

Doesn't have to save to file, can be showing at runtime. What would be the simplest thing to implement?

thanks

like image 333
Sergej Popov Avatar asked Nov 11 '11 12:11

Sergej Popov


2 Answers

System.Diagnostics.Trace.WriteLine("Something") or System.Diagnostics.Debug.WriteLine("Something")

like image 66
misha Avatar answered Sep 29 '22 08:09

misha


You may checkout the Trace class.

like image 27
Darin Dimitrov Avatar answered Sep 29 '22 09:09

Darin Dimitrov