fix: Create resServer and logs if it doesnt exist and update readme (#1686)

* create resServer if not exist

* Update README.md

* Update README.md
This commit is contained in:
David Markowitz
2024-12-17 19:06:07 -08:00
committed by GitHub
parent 15dc5feeb5
commit fced6d753a
3 changed files with 8 additions and 6 deletions

View File

@@ -13,7 +13,7 @@ void Server::SetupLogger(const std::string_view serviceName) {
const auto logsDir = BinaryPathFinder::GetBinaryDir() / "logs";
if (!std::filesystem::exists(logsDir)) std::filesystem::create_directory(logsDir);
if (!std::filesystem::exists(logsDir)) std::filesystem::create_directories(logsDir);
std::string logPath = (logsDir / serviceName).string() + "_" + std::to_string(time(nullptr)) + ".log";
bool logToConsole = false;