Face Engine SDK  5.23.1
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  SV_ERROR = 1,
24  SV_WARN,
25  SV_INFO,
26  SV_DEBUG,
27 
28 #ifndef NDEBUG
29  SV_DEFAULT = SV_DEBUG
30 #else
31  SV_DEFAULT = SV_INFO
32 #endif
33  };
34 
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  } // namespace log
77 } // namespace fsdk
#define FSDK_API
Dummy.
Definition: Def.h:27
Common SDK definitions.