diff --git a/Plugins/RSBot.Log/Views/Main.cs b/Plugins/RSBot.Log/Views/Main.cs index 32cf1bd8..5457aa45 100644 --- a/Plugins/RSBot.Log/Views/Main.cs +++ b/Plugins/RSBot.Log/Views/Main.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ComponentModel; using System.IO; using System.Windows.Forms; @@ -50,7 +50,9 @@ public void AppendLog(string message, LogLevel level = LogLevel.Notify) Kernel.BasePath, "User", "Logs", - Game.Player == null ? "Environment" : Game.Player.Name, + Game.Player == null + ? "Environment" + : $"{RSBot.Core.Components.ProfileManager.SelectedProfile}-{Game.Player.Name}", $"{DateTime.Now:dd-MM-yyyy}.txt" ); diff --git a/Plugins/RSBot.Python/Components/API/Core/Config/API.Config.cs b/Plugins/RSBot.Python/Components/API/Core/Config/API.Config.cs index ced77b78..7e9f228a 100644 --- a/Plugins/RSBot.Python/Components/API/Core/Config/API.Config.cs +++ b/Plugins/RSBot.Python/Components/API/Core/Config/API.Config.cs @@ -1,7 +1,8 @@ -using System.IO; +using System.IO; using System.Windows.Forms; using Python.Runtime; using RSBot.Core; +using RSBot.Core.Components; using RSBot.Python.Components.API.Interface; using RSBot.Python.Views; @@ -51,7 +52,7 @@ private string GetLogPath() { return Path.Combine(projectDir, "User", "Logs"); } - return Path.Combine(projectDir, "User", "Logs", Game.Player.Name); + return Path.Combine(projectDir, "User", "Logs", $"{ProfileManager.SelectedProfile}-{Game.Player.Name}"); } public string get_config_dir()