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/platform/diagnostics/LogAreaID.h"
7
8// auto generated forward declare list
9// clang-format off
11namespace 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 _appendLogEntryMetadata(
58 ::std::string& logEntry,
59 ::std::string timestamp,
60 ::LogAreaID area,
61 uint priority,
62 ::std::string functionName,
63 int lineNumber,
64 int _messageId
65 );
66
67 MCAPI ::std::string _getCurrentTimestamp();
68
69 MCAPI void _logToFile(::std::string const& debugEvent);
70
71 MCAPI void _log_va(
72 ::LogAreaID _area,
73 uint _priority,
74 char const* _function,
75 int line,
76 int _messageId,
77 char const* pszFormat,
78 char* argptr
79 );
80
81 MCAPI ::std::string _makeLogString(
82 ::std::string timestamp,
83 ::LogAreaID area,
84 uint priority,
85 ::std::string functionName,
86 int lineNumber,
87 int messageId,
88 ::std::string const& logMessage
89 );
90
91 MCAPI void _openLogFile();
92
93 MCAPI_C void _updateAllSettings(::LogSettingsUpdater& _settings);
94
95 MCAPI void closeLog();
96
97 MCAPI void createLog(
98 ::Core::Path const& _logFilePath,
99 ::std::string const& _logFileName,
100 ::std::string const& _debugLogTimestamp,
101 bool createLogFile,
102 ::LogSettingsUpdater* _settings,
103 double _logCycleInS
104 );
105
106 MCAPI_S void updateLogFilter(
107 ::std::unique_ptr<::LogSettingsUpdater> options,
108 ::std::string const& filterType,
109 ::std::vector<::std::string> const& filters,
110 ::std::string& result,
111 bool toggle
112 );
113
114 MCAPI void updateLogSetting(::std::string const& setting, bool newValue);
115 // NOLINTEND
116};
117
118} // namespace BedrockLog
Definition Path.h:10
Definition LogSettingsUpdater.h:10
Definition Alias.h:14