feat: unified log path

This commit is contained in:
goat 2021-02-10 03:57:43 +01:00
parent ca3646b472
commit 3821d0459f

View file

@ -55,7 +55,11 @@ namespace Dalamud {
}
private (Logger logger, LoggingLevelSwitch levelSwitch) NewLogger(string baseDirectory) {
#if DEBUG
var logPath = Path.Combine(baseDirectory, "dalamud.txt");
#else
var logPath = Path.Combine(baseDirectory, "..", "..", "dalamud.txt");
#endif
var levelSwitch = new LoggingLevelSwitch();