LeviLamina
Loading...
Searching...
No Matches
ServerLoggingService.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/editor/logging/LogLevel.h"
8#include "mc/editor/logging/LoggingService.h"
9
10// auto generated forward declare list
11// clang-format off
12class HashedString;
13class Player;
14namespace Editor { class LogMessage; }
15namespace Editor { struct LogContent; }
16// clang-format on
17
18namespace Editor::Services {
19
20class ServerLoggingService : public ::Editor::Services::LoggingService {
21public:
22 // member variables
23 // NOLINTBEGIN
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 ServerLoggingService& operator=(ServerLoggingService const&);
31 ServerLoggingService(ServerLoggingService const&);
32 ServerLoggingService();
33
34public:
35 // virtual functions
36 // NOLINTBEGIN
37 virtual ::std::string_view getServiceName() const /*override*/;
38
39 virtual void
40 log(::Editor::LogContent content,
41 ::Player* player,
42 ::Editor::LogLevel level,
43 ::std::vector<::HashedString>&& areaTags,
44 ::Editor::LogChannel logChannelMask) /*override*/;
45
46 virtual void flush() /*override*/;
47
48 virtual ::std::vector<::Editor::LogMessage> const& getMessages() const /*override*/;
49 // NOLINTEND
50
51public:
52 // virtual function thunks
53 // NOLINTBEGIN
54 MCNAPI ::std::string_view $getServiceName() const;
55
56 MCNAPI void $log(
58 ::Player* player,
59 ::Editor::LogLevel level,
60 ::std::vector<::HashedString>&& areaTags,
61 ::Editor::LogChannel logChannelMask
62 );
63
64 MCNAPI void $flush();
65
66 MCNAPI ::std::vector<::Editor::LogMessage> const& $getMessages() const;
67
68
69 // NOLINTEND
70};
71
72} // namespace Editor::Services
Definition LogMessage.h:12
Definition LoggingService.h:19
MCAPI ::std::vector<::Editor::LogMessage > const & $getMessages() const
MCAPI void $log(::Editor::LogContent content, ::Player *player, ::Editor::LogLevel level, ::std::vector<::HashedString > &&areaTags, ::Editor::LogChannel logChannelMask)
MCAPI::std::string_view $getServiceName() const
Definition HashedString.h:5
Definition Player.h:129
Definition LogContent.h:7
Definition Alias.h:14