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