mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -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";
|
const string LOG_IDENT = "Logger::Initialize";
|
||||||
|
|
||||||
// TODO: <Temp>/Bloxstrap/Logs/
|
string directory = useTempDir ? Path.Combine(Paths.TempLogs) : Path.Combine(Paths.Base, "Logs");
|
||||||
string directory = useTempDir ? Path.Combine(Paths.LocalAppData, "Temp") : Path.Combine(Paths.Base, "Logs");
|
|
||||||
string timestamp = DateTime.UtcNow.ToString("yyyyMMdd'T'HHmmss'Z'");
|
string timestamp = DateTime.UtcNow.ToString("yyyyMMdd'T'HHmmss'Z'");
|
||||||
string filename = $"{App.ProjectName}_{timestamp}.log";
|
string filename = $"{App.ProjectName}_{timestamp}.log";
|
||||||
string location = Path.Combine(directory, filename);
|
string location = Path.Combine(directory, filename);
|
||||||
|
Loading…
Reference in New Issue
Block a user