Face Engine SDK  5.23.1
A face detection, recognition and tracking engine.
include/fsdk/Log.h
Go to the documentation of this file.
00001 
00008 #pragma once
00009 #include <fsdk/Def.h>
00010 
00011 namespace fsdk {
00012     namespace log {
00013 
00017         using PrintFunction = void (*)(int severity, const char* message);
00018 
00022         enum Severity {
00023             SV_ERROR = 1, 
00024             SV_WARN,      
00025             SV_INFO,      
00026             SV_DEBUG,     
00027 
00028 #ifndef NDEBUG
00029             SV_DEFAULT = SV_DEBUG 
00030 #else
00031             SV_DEFAULT = SV_INFO 
00032 #endif
00033         };
00034 
00043         FSDK_API void setPrintFunction(PrintFunction function) noexcept;
00044 
00049         FSDK_API PrintFunction getPrintFunction() noexcept;
00050 
00055         FSDK_API PrintFunction getDefaultPrintFunction() noexcept;
00056 
00064         FSDK_API void restorePrintFunction() noexcept;
00065 
00070         FSDK_API void setSeverityFilter(int severity) noexcept;
00071 
00075         FSDK_API int getSeverityFilter() noexcept;
00076     } // namespace log
00077 } // namespace fsdk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines