ErrorLogger¶
-
class ErrorLogger¶
Singleton class for logging errors to file (or if file handling fails, console)
Warning
This class will go from being a singleton to a static namespace in the future
Public Functions
-
inline void log(const std::string &logString)¶
logs the given string with a timestamp that looks like “Mon Nov 20
23:28:22 2023”
- Parameters:
logString – the string to log
Public Static Functions
-
static inline ErrorLogger &getInstance()¶
Gets the instance of the ErrorLogger singleton.
- Returns:
ErrorLogger& a reference to the singleton
-
inline void log(const std::string &logString)¶