Ver Fonte

Add process name to file log name

ghorsington há 5 anos atrás
pai
commit
0b06311d37
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      BepInEx/Logging/DiskLogListener.cs

+ 1 - 1
BepInEx/Logging/DiskLogListener.cs

@@ -13,7 +13,7 @@ namespace BepInEx.Logging
 	{
 		protected LogLevel DisplayedLogLevel = (LogLevel)Enum.Parse(typeof(LogLevel), ConfigConsoleDisplayedLevel.Value, true);
 
-		protected TextWriter LogWriter = TextWriter.Synchronized(new StreamWriter(Path.Combine(Paths.BepInExRootPath, "LogOutput.log"), ConfigAppendLog.Value, Encoding.UTF8));
+		protected TextWriter LogWriter = TextWriter.Synchronized(new StreamWriter(Path.Combine(Paths.BepInExRootPath, $"LogOutput_{Paths.ProcessName}.log"), ConfigAppendLog.Value, Encoding.UTF8));
 
 		protected Timer FlushTimer;