general question is i like to build logger class that writes to single log file
from different classes in my application what should the logger class be
singletone or static class
general question is i like to build logger class that writes to single log
Share
In C++ you’ll want a singleton rather than a static. C++ does not allow you to control the order static objects are constructed and destructed, and if you tried to log before the static was constructed behaviour would possibly be undefined.
I’m not sure about Java.