So I have an application that must log results to different places like an excel sheet, txt file, database etc. I know the basics would be to have a base class that will have a overrideable methods but I’m not sure how to go about it. Doesn’t have to be coded it’s more about design. I know that base class should be extended for each kind of logging but how do you do in a way where if I make a new class for logging to word doc it wouldn’t mess up existing code?
Aucun commentaire:
Enregistrer un commentaire