split logging into multiple classes with configurable levels

This commit is contained in:
Martin Michelsen
2022-06-26 22:53:11 -07:00
parent 47f97f357f
commit 6b958c9f25
26 changed files with 297 additions and 225 deletions
+3 -1
View File
@@ -33,6 +33,8 @@ struct Lobby {
PERSISTENT = 0x00040000,
};
PrefixedLogger log;
uint32_t lobby_id;
uint32_t min_level;
@@ -75,7 +77,7 @@ struct Lobby {
std::shared_ptr<const Quest> loading_quest;
std::array<std::shared_ptr<Client>, 12> clients;
Lobby();
explicit Lobby(uint32_t id);
inline bool is_game() const {
return this->flags & Flag::GAME;