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
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 void closeLog();
94
95 MCAPI void createLog(
96 ::Core::Path const& _logFilePath,
97 ::std::string const& _logFileName,
98 ::std::string const& _debugLogTimestamp,
99 bool createLogFile,
100 ::LogSettingsUpdater* _settings,
101 double _logCycleInS
102 );
103
104 MCAPI void updateLogFilter(
105 ::std::unique_ptr<::LogSettingsUpdater> options,
106 ::std::string const& filterType,
107 ::std::vector<::std::string> const& filters,
108 ::std::string& result,
109 bool toggle
110 );
111
112 MCAPI void updateLogSetting(::std::string const& setting, bool newValue);
113
114 MCAPI ~LogDetails();
115 // NOLINTEND
116
117public:
118 // destructor thunk
119 // NOLINTBEGIN
120 MCAPI void $dtor();
121 // NOLINTEND
122};
123
124} // namespace BedrockLog
Definition Path.h:15
Definition LogSettingsUpdater.h:10
Definition Path.h:16
Definition LogDetails.h:16
Definition Alias.h:14