Example:
Log EngineLog("Engine.log");
EngineLog.WriteToLog("Failed to load...");
Now, all over the code I have included a file that declares a global log that is used by the engine. This global log is used throughout the engine and really messes up my goal of keeping things modular. Now, what is the best way to log but still keep things modular? Please provide more than just, "Use cout or printf".
Thanks,
Brent