1 #ifndef OPENPOSE_UTILITIES_ERROR_AND_LOG_HPP
2 #define OPENPOSE_UTILITIES_ERROR_AND_LOG_HPP
18 std::ostringstream oss;
30 inline void error(
const T& message,
const int line = -1,
const std::string&
function =
"",
57 log(message, priority, line,
function, file);
71 static std::vector<ErrorMode> getErrorModes();
73 static void setErrorModes(
const std::vector<ErrorMode>& errorModes);
80 static Priority getPriorityThreshold();
82 static const std::vector<LogMode>& getLogModes();
84 static void setPriorityThreshold(
const Priority priorityThreshold);
86 static void setLogModes(
const std::vector<LogMode>& loggingModes);
90 #endif // OPENPOSE_UTILITIES_ERROR_AND_LOG_HPP
#define UNUSED(unusedVariable)
Definition: macros.hpp:28
OP_API void error(const std::string &message, const int line=-1, const std::string &function="", const std::string &file="")
std::string tToString(const T &message)
Definition: errorAndLog.hpp:15
void dLog(const T &message, const Priority priority=Priority::Max, const int line=-1, const std::string &function="", const std::string &file="")
Definition: errorAndLog.hpp:53
OP_API void log(const std::string &message, const Priority priority=Priority::Max, const int line=-1, const std::string &function="", const std::string &file="")
Priority
Definition: enumClasses.hpp:21
#define OP_API
Definition: macros.hpp:15
std::string string
Definition: cl2.hpp:574