mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-04 01:34:07 +00:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user