Skip to content
LeviMC
English
AutoLightDark
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 _appendLogEntryMetadata(
58 ::std::string& logEntry,
59 ::std::string_view timestamp,
60 ::LogAreaID area,
61 uint priority,
62 ::std::string_view functionName,
63 int lineNumber,
64 int _messageId
65 );
66
67 MCAPI void
68 _log(::LogAreaID _area, uint _priority, char const* _function, int line, int _messageId, ::std::string message);
69
70 MCNAPI void _logToFile(::std::string const& debugEvent);
71
72 MCNAPI void _openLogFile();
73
74 MCNAPI void closeLog();
75
76 MCNAPI void createLog(
77 ::Core::Path const& _logFilePath,
78 ::std::string const& _logFileName,
79 ::std::string const& _debugLogTimestamp,
80 bool createLogFile,
81 ::LogSettingsUpdater* _settings,
82 double const _logCycleInS
83 );
84
85#ifdef LL_PLAT_S
86 MCNAPI void updateLogFilter(
87 ::std::unique_ptr<::LogSettingsUpdater> options,
88 ::std::string const& filterType,
89 ::std::vector<::std::string> const& filters,
90 ::std::string& result,
91 bool toggle
92 );
93#endif
94
95 MCNAPI void updateLogSetting(::std::string const& setting, bool newValue);
96 // NOLINTEND
97};
98
99} // namespace BedrockLog
Definition Path.h:10
Definition LogSettingsUpdater.h:5
MCAPI void _logToFile(::std::string const &debugEvent)
MCAPI void _openLogFile()
MCAPI void createLog(::Core::Path const &_logFilePath, ::std::string const &_logFileName, ::std::string const &_debugLogTimestamp, bool createLogFile, ::LogSettingsUpdater *_settings, double const _logCycleInS)
MCAPI void updateLogSetting(::std::string const &setting, bool newValue)
Definition Alias.h:14