Skip to content
LeviMC
English
AutoLightDark
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/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 { class ServiceProviderCollection; }
16namespace Editor { struct LogContent; }
17// clang-format on
18
19namespace Editor::Services {
20
21class ServerLoggingService : public ::Editor::Services::LoggingService {
22public:
23 // member variables
24 // NOLINTBEGIN
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 ServerLoggingService& operator=(ServerLoggingService const&);
32 ServerLoggingService(ServerLoggingService const&);
33 ServerLoggingService();
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 virtual ::std::string_view getServiceName() const /*override*/;
39
40 virtual void
41 log(::Editor::LogContent content,
42 ::Player* player,
43 ::Editor::LogLevel level,
44 ::std::vector<::HashedString>&& areaTags,
45 ::Editor::LogChannel logChannelMask,
46 ::std::optional<bool> alert) /*override*/;
47
48 virtual void flush() /*override*/;
49
50 virtual ::std::vector<::Editor::LogMessage> const& getMessages() const /*override*/;
51 // NOLINTEND
52
53public:
54 // member functions
55 // NOLINTBEGIN
57 // NOLINTEND
58
59public:
60 // constructor thunks
61 // NOLINTBEGIN
63 // NOLINTEND
64
65public:
66 // virtual function thunks
67 // NOLINTBEGIN
68 MCNAPI ::std::string_view $getServiceName() const;
69
70 MCNAPI void $log(
72 ::Player* player,
73 ::Editor::LogLevel level,
74 ::std::vector<::HashedString>&& areaTags,
75 ::Editor::LogChannel logChannelMask,
76 ::std::optional<bool> alert
77 );
78
79 MCNAPI void $flush();
80
81 MCNAPI ::std::vector<::Editor::LogMessage> const& $getMessages() const;
82
83
84 // NOLINTEND
85
86public:
87 // vftables
88 // NOLINTBEGIN
89 MCNAPI static void** $vftableForLoggingServiceProvider();
90
91 MCNAPI static void** $vftableForIEditorService();
92 // NOLINTEND
93};
94
95} // namespace Editor::Services
Definition LogMessage.h:12
Definition ServiceProviderCollection.h:7
Definition LoggingService.h:19
MCAPI void * $ctor(::Editor::ServiceProviderCollection &providers)
MCAPI void $log(::Editor::LogContent content, ::Player *player, ::Editor::LogLevel level, ::std::vector<::HashedString > &&areaTags, ::Editor::LogChannel logChannelMask, ::std::optional< bool > alert)
MCAPI ::std::vector<::Editor::LogMessage > const & $getMessages() const
static MCAPI void ** $vftableForIEditorService()
MCAPI::std::string_view $getServiceName() const
static MCAPI void ** $vftableForLoggingServiceProvider()
MCAPI ServerLoggingService(::Editor::ServiceProviderCollection &providers)
Definition HashedString.h:5
Definition Player.h:131
Definition LogContent.h:7
Definition Alias.h:14