Logger.h 472 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef UTIL_LOGGER_H
  2. #define UTIL_LOGGER_H
  3. #include <string>
  4. namespace PresenceDetection {
  5. namespace Util {
  6. class Logger
  7. {
  8. public:
  9. class Severity
  10. {
  11. public:
  12. enum type
  13. {
  14. Emergency = 0,
  15. Alert = 1,
  16. Critical = 2,
  17. Error = 3,
  18. Warning = 4,
  19. Notice = 5,
  20. Info = 6,
  21. Debug = 7
  22. };
  23. };
  24. public:
  25. static void Log(Severity::type severity, const std::string& message);
  26. };
  27. } // namespace Util
  28. } // namespace PresenceDetection
  29. #endif // UTIL_LOGGER_H