ChatPlexSDK-BS 1.0.1-v6.2.0
C++ ChatPlex BeatSaber SDK
Loading...
Searching...
No Matches
ILogger.hpp
1#pragma once
2
3#include <string>
4#include <exception>
5
6namespace CP_SDK::Logging {
7
9 class ILogger
10 {
11 public:
12 enum class ELogType
13 {
14 Error,
15 Warning,
16 Info,
17 Debug
18 };
19
20 public:
21 void Error(std::u16string_view p_Data);
22 void Error(const std::exception& p_Data);
23 void Warning(std::u16string_view p_Data);
24 void Warning(const std::exception& p_Data);
25 void Info(std::u16string_view p_Data);
26 void Info(const std::exception& p_Data);
27 void Debug(std::u16string_view p_Data);
28 void Debug(const std::exception& p_Data);
29
30 private:
34 void InternalLog(ELogType p_Type, std::u16string_view p_Data);
38 void InternalLog(ELogType p_Type, const std::exception& p_Data);
39
40 protected:
44 virtual void LogImplementation(ELogType p_Type, std::u16string_view p_Data) = 0;
48 virtual void LogImplementation(ELogType p_Type, const std::exception& p_Data) = 0;
49
50 };
51
52}
virtual void LogImplementation(ELogType p_Type, const std::exception &p_Data)=0
Log implementation.
virtual void LogImplementation(ELogType p_Type, std::u16string_view p_Data)=0
Log implementation.
Logging utilities.
Definition BMBFLogger.hpp:7