Browse Source

Add process name to file log name

ghorsington 5 years ago
parent
commit
0b06311d37
1 changed files with 1 additions and 1 deletions
  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;