LeviLamina
Loading...
Searching...
No Matches
BedrockLog.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/diagnostics/bedrock_log/LogCategory.h"
8#include "mc/diagnostics/bedrock_log/LogChannel.h"
9#include "mc/diagnostics/bedrock_log/LogRule.h"
10
11// auto generated forward declare list
12// clang-format off
14namespace BedrockLog { class LogAreaFilter; }
15namespace Core { class Path; }
16// clang-format on
17
18namespace BedrockLog {
19// functions
20// NOLINTBEGIN
21MCAPI char const* _areaFilterString(::LogAreaID _area);
22
23MCAPI bool
24_constructAreaFilterFromString(::std::string const& filterString, ::BedrockLog::LogAreaFilter& logAreaFilter);
25
26MCAPI ::std::string _constructAreaFilterStringFromFilter(::BedrockLog::LogAreaFilter const& filter);
27
28MCAPI ::std::string _constructPriorityFilterStringFromFilter(uint filter);
29
30MCAPI void _initAreaFilterMap();
31
32MCAPI void _initPriorityFilterMap();
33
34MCAPI ::std::string _messageIdString(int _messageId);
35
36MCAPI void _openChannel(
37 ::Core::Path const& path,
38 ::std::string const& filename,
39 ::std::string const& _debugLogTimestamp,
40 ::BedrockLog::LogCategory category,
41 ::BedrockLog::LogChannel channel,
42 bool _createLogFile,
43 ::LogSettingsUpdater* _settings,
44 double _logCycleInS
45);
46
47MCAPI ::std::string _processIdString();
48
49MCAPI ::std::string _threadIdString();
50
51MCAPI void closeAndResetAllLogs();
52
53MCAPI void createLog(
54 ::Core::Path const& _path,
55 ::std::string const& _labelDescription,
56 ::std::string const& _debugLogTimestamp,
57 ::BedrockLog::LogCategory _category,
58 ::std::bitset<3> _channels,
59 bool _createLogFile,
60 ::LogSettingsUpdater* _settings,
61 double _logCycleInS
62);
63
64MCAPI void log_va(
65 ::BedrockLog::LogCategory _category,
66 ::std::bitset<3> channelMask,
67 ::BedrockLog::LogRule rule,
68 ::LogAreaID _area,
69 uint _priority,
70 char const* _function,
71 int _line,
72 char const* _pszFormat,
73 char* argptr
74);
75
76MCAPI int rakDebugLog(char const*, ...);
77
78MCAPI void updateLogFilter(
79 ::std::unique_ptr<::LogSettingsUpdater> options,
80 ::std::string const& filterType,
81 ::std::vector<::std::string> const& filters,
82 ::std::string& result,
83 bool toggle
84);
85// NOLINTEND
86
87// static variables
88// NOLINTBEGIN
89MCAPI ::std::bitset<3> const& sGlobalChannel();
90// NOLINTEND
91
92} // namespace BedrockLog
Definition LogAreaFilter.h:7
Definition Path.h:11
Definition LogSettingsUpdater.h:10
Definition Path.h:16