Face Engine SDK  5.14.0
A face detection, recognition and tracking engine.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Log.h
Go to the documentation of this file.
1 
8 #pragma once
9 #include <fsdk/Def.h>
10 
11 namespace fsdk{
12  namespace log {
13 
17  using PrintFunction = void (*)(int severity, const char* message);
18 
22  enum Severity
23  {
24  SV_ERROR=1,
25  SV_WARN,
26  SV_INFO,
27  SV_DEBUG,
28 
29 #ifndef NDEBUG
30  SV_DEFAULT = SV_DEBUG
31 #else
32  SV_DEFAULT = SV_INFO
33 #endif
34  };
35 
43  FSDK_API void setPrintFunction(PrintFunction function) noexcept;
44 
49  FSDK_API PrintFunction getPrintFunction() noexcept;
50 
55  FSDK_API PrintFunction getDefaultPrintFunction() noexcept;
56 
64  FSDK_API void restorePrintFunction() noexcept;
65 
70  FSDK_API void setSeverityFilter(int severity) noexcept;
71 
75  FSDK_API int getSeverityFilter() noexcept;
76  }
77 }
#define FSDK_API
Dummy.
Definition: Def.h:27
Common SDK definitions.