mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-18 16:41:36 -07:00
Write temp logs to corrected specific folder
This commit is contained in:
parent
4d9a0ee410
commit
7440f18663
@ -16,8 +16,7 @@
|
||||
{
|
||||
const string LOG_IDENT = "Logger::Initialize";
|
||||
|
||||
// TODO: <Temp>/Bloxstrap/Logs/
|
||||
string directory = useTempDir ? Path.Combine(Paths.LocalAppData, "Temp") : Path.Combine(Paths.Base, "Logs");
|
||||
string directory = useTempDir ? Path.Combine(Paths.TempLogs) : Path.Combine(Paths.Base, "Logs");
|
||||
string timestamp = DateTime.UtcNow.ToString("yyyyMMdd'T'HHmmss'Z'");
|
||||
string filename = $"{App.ProjectName}_{timestamp}.log";
|
||||
string location = Path.Combine(directory, filename);
|
||||
|
Loading…
Reference in New Issue
Block a user