알려진 버그 픽스
This commit is contained in:
20
Server/include/Utils/ConfigManager.hpp
Normal file
20
Server/include/Utils/ConfigManager.hpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
#include "precomp.hpp"
|
||||
#include <json/json.h>
|
||||
|
||||
namespace Chattr {
|
||||
class ConfigManager {
|
||||
public:
|
||||
struct Config {
|
||||
Json::Value configJsonRoot;
|
||||
std::uint32_t ipVersion = 0;
|
||||
std::uint32_t listenPort = 0;
|
||||
spdlog::level::level_enum logLevel = spdlog::level::off;
|
||||
gsl::czstring logFileName = "";
|
||||
std::uint32_t logfileSize = 0;
|
||||
std::uint32_t logfileCount = 0;
|
||||
};
|
||||
|
||||
static Config load();
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user