I wish to be able to write entries to a console application which will describe when actions have been completed, possibly writing them to a .txt file at one point.
I would like it to be used with a separate GUI application running at the same time so i can use the application and monitor the log simultaneously.
I only assume the Diagnostic class is the right tool to use however I have never used any logging methods before, so i welcome any other suggestions.
Thanks
Look at System.Diagnostics.Trace. You can add different TraceListeners to it, including listeners for the Console or files. Then replace all your Console.Write()/Console.WriteLine() calls with Trace.Write()/Trace.WriteLine() and you’re good. You can even implement your own TraceListener (it’s very easy) to send the messages to your GUI app.