/* * Loggable.h * * Created on: Dec 4, 2012 * Author: dklein */ #ifndef LOGGER_H_ #define LOGGER_H_ #include #include namespace Highway { class Logger { private: static Logger* instance; std::string fBindAddress; public: enum { DEBUG, INFO, ERROR }; Logger(); Logger(std::string bindAdress); virtual ~Logger(); void Log(int type, std::string logmsg); static Logger* GetInstance(); static Logger* InitInstance(std::string bindAddress); }; } /* namespace Highway */ #endif /* LOGGER_H_ */