How can I write console output to a single text from different classes.
Lets say I have a
program.cs
datacapture.cs ( pulls data from a repository )
logfile.cs
Now in logfile.cs I want to define all the logic for writing to a text file
Typically I put Console.Writeline entries just to identify where I am in my code. For example, Start - DataCapture
I want to record all this into the log file that I specific in logfile.cs
