Xavia SDK c++ API 2.1.0
API description of the xavia library
Loading...
Searching...
No Matches
logs.h
1#pragma once
2
3#include "xmsdk_export.h"
4
5#include <functional>
6#include <string>
7
8namespace xavia::sdk
9{
13 enum class Severity {
14 XM_ERROR,
15 XM_WARNING,
16 XM_INFO,
17 XM_DEBUG
18 };
19
20 using LogCallback = std::function<void(const Severity&, const std::wstring&)>;
21
37 void XMSDK_EXPORT SetLogOutputFolder(const std::wstring& path);
38
44 void XMSDK_EXPORT SetLogSeverity(const Severity& severity);
45
51 Severity XMSDK_EXPORT GetLogSeverity();
52
60 std::wstring XMSDK_EXPORT GetLogTypeString(const Severity& severity);
61
71 void XMSDK_EXPORT SetLogCallBack(const LogCallback& callback);
72
84 void XMSDK_EXPORT Log(const Severity severity, const std::wstring message,
85 const char* i_file, const size_t& i_line, const char* i_functionName);
86} // namespace xavia::sdk