#include #include "Logger.h" using namespace std; Logger & Logger::Instance() { static Logger instance; return instance; } void Logger::SetLevel(LogLevel l) { level = l; } void Logger::Log(string msg, LogLevel l) { if (l <= level) { cout << msg; } } // added just for clarity Logger::Logger() { cout << "The logger was constructed " << endl; } Logger::~Logger() { cout << "The logger was destroyed" << endl; }