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& channel,
40 ::BedrockLog::LogCategory _debugLogTimestamp,
41 ::BedrockLog::LogChannel category,
42 bool _createLogFile,
43 ::LogSettingsUpdater* _settings,
44 double _logCycleInS
45);
46
47MCAPI ::std::string _processIdString();
48
49MCAPI void closeAndResetAllLogs();
50
51MCAPI void createLog(
52 ::Core::Path const& _path,
53 ::std::string const& _labelDescription,
54 ::std::string const& _channels,
55 ::BedrockLog::LogCategory _debugLogTimestamp,
56 ::std::bitset<3> _category,
57 bool _createLogFile,
58 ::LogSettingsUpdater* _settings,
59 double _logCycleInS
60);
61
62MCAPI void log_va(
63 ::BedrockLog::LogCategory _category,
64 ::std::bitset<3> channelMask,
65 ::BedrockLog::LogRule rule,
66 ::LogAreaID _area,
67 uint _priority,
68 char const* _function,
69 int _line,
70 char const* _pszFormat,
71 char* argptr
72);
73
74MCAPI int rakDebugLog(char const*, ...);
75
76MCAPI void updateLogFilter(
77 ::std::unique_ptr<::LogSettingsUpdater> options,
78 ::std::string const& filterType,
79 ::std::vector<::std::string> const& filters,
80 ::std::string& result,
81 bool toggle
82);
83// NOLINTEND
84
85// static variables
86// NOLINTBEGIN
87MCAPI ::std::bitset<3> const& sGlobalChannel();
88// NOLINTEND
89
90} // namespace BedrockLog
Definition LogAreaFilter.h:7
Definition Path.h:15
Definition LogSettingsUpdater.h:10
Definition Path.h:16