Face Engine SDK 5.25.0
A face detection, recognition and tracking engine.
Loading...
Searching...
No Matches
Log.h
Go to the documentation of this file.
1
8#pragma once
9#include <fsdk/Def.h>
10
11namespace fsdk {
12 namespace log {
13
17 using PrintFunction = void (*)(int severity, const char* message);
18
22 enum Severity {
27
28#ifndef NDEBUG
30#else
32#endif
33 };
34
43 FSDK_API void setPrintFunction(PrintFunction function) noexcept;
44
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
FSDK_API void setPrintFunction(PrintFunction function) noexcept
Set print function pointer. Default function is made thread-safe with function-local mutex....
Severity
Log message severity enumeration.
Definition Log.h:22
@ SV_DEBUG
Extended (debugging) information (verbose).
Definition Log.h:26
@ SV_DEFAULT
Default severity.
Definition Log.h:29
@ SV_WARN
Recoverable error / non-critical issue.
Definition Log.h:24
@ SV_INFO
Generic information.
Definition Log.h:25
@ SV_ERROR
Critical error.
Definition Log.h:23
void(*)(int severity, const char *message) PrintFunction
Custom print function type.
Definition Log.h:17
FSDK_API PrintFunction getPrintFunction() noexcept
Get print function pointer.
SDK namespace.
Definition IAGSEstimator.h:8