I wonder if such approach is OK, or something can/must be improved?
David Winters Junior
posted 8 years ago
I have a log file for each class in the project so that if an exception occurs then i log it to the log file and the in the catch block throw the exception. You should define verious exceptions at each layer, the server layer, gui layer of the application etc.
So in order to have a log file for each class - i created a Logger class which will be instantiated when each class is instantiated. It is good for debugging and is closer to a real world solution for logging here.
I hope this helps David
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads