Add Logger Class

This commit is contained in:
2020-03-05 12:59:29 +01:00
parent 96d4dc0be9
commit b4f9aa4cb2
6 changed files with 73 additions and 24 deletions
+37
View File
@@ -0,0 +1,37 @@
#ifndef UTIL_LOGGER_H
#define UTIL_LOGGER_H
#include <string>
namespace PresenceDetection {
namespace Util {
class Logger
{
public:
class Severity
{
public:
enum type
{
Emergency = 0,
Alert = 1,
Critical = 2,
Error = 3,
Warning = 4,
Notice = 5,
Info = 6,
Debug = 7
};
};
public:
static void Log(Severity::type severity, const std::string& message);
};
} // namespace Util
} // namespace PresenceDetection
#endif // UTIL_LOGGER_H