LeviLamina
Loading...
Searching...
No Matches
LogDetails.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/diagnostics/LogAreaID.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace Core { class Path; }
12// clang-format on
13
14namespace BedrockLog {
15
16struct LogDetails {
17public:
18 // member variables
19 // NOLINTBEGIN
46 // NOLINTEND
47
48public:
49 // prevent constructor by default
50 LogDetails& operator=(LogDetails const&);
51 LogDetails(LogDetails const&);
52 LogDetails();
53
54public:
55 // member functions
56 // NOLINTBEGIN
57 MCAPI void _logToFile(::std::string const& debugEvent);
58
59 MCAPI void _log_va(
60 ::LogAreaID _area,
61 uint _priority,
62 char const* _function,
63 int line,
64 int _messageId,
65 char const* pszFormat,
66 char* argptr
67 );
68
69 MCAPI ::std::string _makeLogString(
70 ::std::string timestamp,
71 ::LogAreaID area,
72 uint priority,
73 ::std::string functionName,
74 int lineNumber,
75 int messageId,
76 ::std::string const& logMessage
77 );
78
79 MCAPI void _openLogFile();
80
81 MCAPI void closeLog();
82
83 MCAPI void createLog(
84 ::Core::Path const& _logFilePath,
85 ::std::string const& _logFileName,
86 ::std::string const& _debugLogTimestamp,
87 bool createLogFile,
88 ::LogSettingsUpdater* _settings,
89 double const _logCycleInS
90 );
91
92#ifdef LL_PLAT_S
93 MCAPI void updateLogFilter(
94 ::std::unique_ptr<::LogSettingsUpdater> options,
95 ::std::string const& filterType,
96 ::std::vector<::std::string> const& filters,
97 ::std::string& result,
98 bool toggle
99 );
100#endif
101
102 MCAPI void updateLogSetting(::std::string const& setting, bool newValue);
103 // NOLINTEND
104};
105
106} // namespace BedrockLog
Definition Path.h:11
Definition LogSettingsUpdater.h:5
Definition Alias.h:14