I know this should be simple and I should know it but it's eluding me for the time being.
I am using a singleton pattern to help with logging stuff. However, logging only happens in one class, and the singleton is basically a watcher for a boolean that opens and closes the log file. Because I don't want the file to be opened more than once, or closed more than once, I'm using the singleton pattern. However, I don't want it to be a global value, and I sure as hell don't want other classes, even inside the package accessing it. How can I make it so only this one class use it?