Inject logger instead of using a singleton

This commit is contained in:
2019-06-16 11:33:23 +02:00
parent 14740e4a64
commit 9ba225cbde
14 changed files with 76 additions and 56 deletions

View File

@@ -3,17 +3,14 @@
class Logger
{
private:
Logger();
~Logger();
public:
void Success(const std::string & s);
void Error(const std::string & s);
void Info(const std::string & s);
void Debug(const std::string & s);
static Logger & GetInstance();
Logger();
~Logger();
Logger(Logger & other) = delete;
Logger(Logger && other) = delete;
Logger & operator=(Logger & other) = delete;