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 virtual void
28 log(::Editor::LogContent content,
29 ::Player* player,
30 ::Editor::LogLevel level,
31 ::std::vector<::HashedString>&& areaTags,
32 ::Editor::LogChannel logChannel) = 0;
33
34 virtual void flush() = 0;
35
36 virtual ::std::vector<::Editor::LogMessage> const& getMessages() const = 0;
37
38 virtual ::Scripting::Result_deprecated<::Bedrock::PubSub::Subscription>
39 listenForLogMessage(::std::function<void(::Editor::LogMessage const&)> func) = 0;
40 // NOLINTEND
41
42public:
43 // virtual function thunks
44 // NOLINTBEGIN
45
46 // NOLINTEND
47};
48
49} // namespace Editor::Services
Definition Subscription.h:10
Definition LogMessage.h:12
Definition LoggingServiceProvider.h:21
Definition HashedString.h:5
Definition Player.h:129
Definition LogContent.h:7