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#include "mc/platform/diagnostics/bedrock_log/LogChannel.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace Core { class Path; }
13// clang-format on
14
15namespace BedrockLog {
16
17struct LogDetails {
18public:
19 // member variables
20 // NOLINTBEGIN
47 // NOLINTEND
48
49public:
50 // prevent constructor by default
51 LogDetails& operator=(LogDetails const&);
52 LogDetails(LogDetails const&);
53 LogDetails();
54
55public:
56 // member functions
57 // NOLINTBEGIN
58 MCAPI explicit LogDetails(::BedrockLog::LogChannel channel);
59
60 MCAPI void _appendLogEntryMetadata(
61 ::std::string& logEntry,
62 ::std::string timestamp,
63 ::LogAreaID area,
64 uint priority,
65 ::std::string functionName,
66 int lineNumber,
67 int _messageId
68 );
69
70 MCAPI ::std::string _getCurrentTimestamp();
71
72 MCAPI void _logToFile(::std::string const& debugEvent);
73
74 MCAPI void _log_va(
75 ::LogAreaID _area,
76 uint _priority,
77 char const* _function,
78 int line,
79 int _messageId,
80 char const* pszFormat,
81 char* argptr
82 );
83
84 MCAPI ::std::string _makeLogString(
85 ::std::string timestamp,
86 ::LogAreaID area,
87 uint priority,
88 ::std::string functionName,
89 int lineNumber,
90 int messageId,
91 ::std::string const& logMessage
92 );
93
94 MCAPI void _openLogFile();
95
96 MCAPI void _updateAllSettings(::LogSettingsUpdater& _settings);
97
98 MCAPI void closeLog();
99
100 MCAPI void createLog(
101 ::Core::Path const& _logFilePath,
102 ::std::string const& _logFileName,
103 ::std::string const& _debugLogTimestamp,
104 bool createLogFile,
105 ::LogSettingsUpdater* _settings,
106 double _logCycleInS
107 );
108
109#ifdef LL_PLAT_S
110 MCAPI void updateLogFilter(
111 ::std::unique_ptr<::LogSettingsUpdater> options,
112 ::std::string const& filterType,
113 ::std::vector<::std::string> const& filters,
114 ::std::string& result,
115 bool toggle
116 );
117#endif
118
119 MCAPI void updateLogSetting(::std::string const& setting, bool newValue);
120
121 MCAPI ~LogDetails();
122 // NOLINTEND
123
124public:
125 // constructor thunks
126 // NOLINTBEGIN
127 MCAPI void* $ctor(::BedrockLog::LogChannel channel);
128 // NOLINTEND
129
130public:
131 // destructor thunk
132 // NOLINTBEGIN
133 MCAPI void $dtor();
134 // NOLINTEND
135};
136
137} // namespace BedrockLog
Definition Path.h:12
Definition LogSettingsUpdater.h:5
Definition Alias.h:14