What is the easiest way to trace or log into a C # Windows forms application?
No need to save to a file; it may be displayed at runtime. What will be the easiest to implement?
thanks
System.Diagnostics.Trace.WriteLine("Something") or System.Diagnostics.Debug.WriteLine("Something")
System.Diagnostics.Trace.WriteLine("Something")
System.Diagnostics.Debug.WriteLine("Something")
You can check the Trace class.
System.Diagnostics.Trace
The output is configured in the configuration file.
You can use the Trace class and add a trace listener to save it to a file.
Also consider the Debug class.
Source: https://habr.com/ru/post/901295/More articles:Smarty: check if a variable is in an array - arraysHide all rows of a table after a specific number? - jqueryDjango haystack: increasing search results if a search engine appears in a specific field - djangoexecv * and write in stdin - cIMAP "Invalid Credentials" via GMail XOAUTH - authenticationOptional parameters and inheritance - inheritancehttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/901297/imap-access-to-gmail-inbox-with-xoauth&usg=ALkJrhhLrTw-5S6mJ1GoNUNiW1NPHz8-ggError "DateTime" in Arabic culture "ar-sa" - c #How to get a Liferay session in a custom servlet? - javaWhy are we saying that the static method in Java is not a virtual method? - javaAll Articles