mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 02:43:44 +00:00
fix: follow main's log folders in the dashboard and UGC server
Servers now log to logs/<Server>/ (worlds to logs/WorldServer/<zone>/<clone>/) with the start time in the file name. The dashboard and UGC server log the same way, and the System Log page and log search read the whole folder tree instead of only the top of logs/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -350,7 +350,8 @@ int main(int argc, char** argv) {
|
||||
Game::config = new dConfig("dashboardconfig.ini");
|
||||
|
||||
// Setup logger
|
||||
Server::SetupLogger("DashboardServer");
|
||||
// Like the other servers: logs/DashboardServer/DashboardServer_<start time>.log
|
||||
Server::SetupLogger("DashboardServer_" + std::to_string(time(nullptr)), "DashboardServer");
|
||||
if (!Game::logger) return EXIT_FAILURE;
|
||||
Game::config->LogSettings();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user