S
SoxFan44
I'm pertty new to designing software, so I have what's probably a very
simple question. I'm designing a Windows Forms application in C#. I have a
class LogMessage that will hold a single log message. I am creating a
Logger class where the constructor will take in a LogMessage and log it to a
file and update a Windows Form.
My question is, should Logger be a static class? And in what file/function
should I create the Logger instance so that it's accessible from all forms
and other classes? Thanks for the help!
simple question. I'm designing a Windows Forms application in C#. I have a
class LogMessage that will hold a single log message. I am creating a
Logger class where the constructor will take in a LogMessage and log it to a
file and update a Windows Form.
My question is, should Logger be a static class? And in what file/function
should I create the Logger instance so that it's accessible from all forms
and other classes? Thanks for the help!