H-uru/Plasma — Issue #99: Logs moved to C:\log
Author: cwalther
Created: 2011-11-06 11:15:29+00:00
State: open

Somewhere between 53d8f4d6e3abdd7e5b828bc84e52515c63e01ea5 and a7dbe3f7ab66252375a8c48b14d6d1aa91b564bb, logs moved from *C:\Users\CWalther\AppData\Local\Uru Live\Log\* to *C:\log\*. Was this intentional?

I suspect the cause is the following change in e2d4b12d3d6330216d02319d9d5e866ccf34d0cd (at least I seem to be able to restore the previous location by undoing it):

```diff
diff --git a/Sources/Plasma/PubUtilLib/plStatusLog/plStatusLog.cpp b/Sources/Plasma/PubUtilLib/plStatusLog/plStatusLog.cpp
index 501868c..096d419 100644
--- a/Sources/Plasma/PubUtilLib/plStatusLog/plStatusLog.cpp
+++ b/Sources/Plasma/PubUtilLib/plStatusLog/plStatusLog.cpp
@@ -91,7 +90,8 @@ plStatusLogMgr::plStatusLogMgr()
fDrawer = nil;
fLastLogChangeTime = 0;

- PathGetLogDirectory(fBasePath, arrsize(fBasePath));
+ plFileUtils::ConcatFileName(fBasePath, L"log");
+ plFileUtils::EnsureFilePathExists(fBasePath);
}

plStatusLogMgr::~plStatusLogMgr()
```

fBasePath is "" before this, so it ends up as "\log".

I don’t have time right now to figure out what the proper solution is (maybe adding a non-Windows implementation of PathGetLogDirectory()?), so I’m just bringing it up for now.

I also just noticed that all log lines in the files (not those in the in-game log viewer) appear to be truncated to their first 4 characters after the timestamp, but I don’t have time to investigate that now.