38 lines
472 B
C++
38 lines
472 B
C++
#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
|