LeviLamina
Loading...
Searching...
No Matches
LoggingServiceProvider.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/editor/LogChannel.h"
7#include "mc/deps/scripting/runtime/Result_deprecated.h"
8#include "mc/editor/logging/LogLevel.h"
9
10// auto generated forward declare list
11// clang-format off
12class HashedString;
13class Player;
14namespace Bedrock::PubSub { class Subscription; }
15namespace Editor { class LogMessage; }
16namespace Editor { struct LogContent; }
17// clang-format on
18
19namespace Editor::Services {
20
22public:
23 // virtual functions
24 // NOLINTBEGIN
25 virtual ~LoggingServiceProvider() = default;
26
27#ifdef LL_PLAT_S
28 virtual void
29 log(::Editor::LogContent content,
30 ::Player* player,
31 ::Editor::LogLevel level,
32 ::std::vector<::HashedString>&& areaTags,
33 ::Editor::LogChannel logChannelMask) = 0;
34#else // LL_PLAT_C
35 virtual void
36 log(::Editor::LogContent content,
37 ::Player* player,
38 ::Editor::LogLevel level,
39 ::std::vector<::HashedString>&& areaTags,
40 ::Editor::LogChannel logChannel) = 0;
41#endif
42
43 virtual void flush() = 0;
44
45 virtual ::std::vector<::Editor::LogMessage> const& getMessages() const = 0;
46
47 virtual ::Scripting::Result_deprecated<::Bedrock::PubSub::Subscription>
48 listenForLogMessage(::std::function<void(::Editor::LogMessage const&)> func) = 0;
49 // NOLINTEND
50
51public:
52 // virtual function thunks
53 // NOLINTBEGIN
54
55 // NOLINTEND
56};
57
58} // namespace Editor::Services
Definition Subscription.h:10
Definition LogMessage.h:12
Definition LoggingServiceProvider.h:21
Definition HashedString.h:5
Definition Player.h:137
Definition LogContent.h:7