Преглед на файлове

Add process name to file log name

ghorsington преди 6 години
родител
ревизия
0b06311d37
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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;