From 127fee104f756f88235ab1c9296eb65b182564bb Mon Sep 17 00:00:00 2001 From: Mike Dickson Date: Sun, 23 Jun 2024 13:57:26 -0400 Subject: [PATCH] Look for default config files in dll.config instead of exe.config because of dotnet changes. --- OpenSim/Region/Application/Application.cs | 4 ++-- OpenSim/Server/Base/ServicesServerBase.cs | 3 ++- OpenSim/Tools/pCampBot/pCampBot.cs | 2 +- bin/log4net.xml | 8 ++++---- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/OpenSim/Region/Application/Application.cs b/OpenSim/Region/Application/Application.cs index cb46b02b6d8..678a3d6d9c4 100644 --- a/OpenSim/Region/Application/Application.cs +++ b/OpenSim/Region/Application/Application.cs @@ -99,8 +99,8 @@ public static void Main(string[] args) } else { - XmlConfigurator.Configure(new System.IO.FileInfo("OpenSim.exe.config")); - m_log.Info("[OPENSIM MAIN]: configured log4net using default OpenSim.exe.config"); + XmlConfigurator.Configure(new System.IO.FileInfo("OpenSim.dll.config")); + m_log.Info("[OPENSIM MAIN]: configured log4net using default OpenSim.dll.config"); } // temporay set the platform dependent System.Drawing.Common.dll diff --git a/OpenSim/Server/Base/ServicesServerBase.cs b/OpenSim/Server/Base/ServicesServerBase.cs index 2bed8242c1c..e782df8ca63 100755 --- a/OpenSim/Server/Base/ServicesServerBase.cs +++ b/OpenSim/Server/Base/ServicesServerBase.cs @@ -161,7 +161,8 @@ public ServicesServerBase(string prompt, string[] args) : base() } else { - XmlConfigurator.Configure(new FileInfo("Robust.exe.config")); + XmlConfigurator.Configure(new FileInfo("Robust.dll.config")); + m_log.Info("[ROBUST]: configured log4net using default Robust.dll.config"); } RegisterCommonAppenders(startupConfig); diff --git a/OpenSim/Tools/pCampBot/pCampBot.cs b/OpenSim/Tools/pCampBot/pCampBot.cs index 990f5e627b8..a98c7f00997 100644 --- a/OpenSim/Tools/pCampBot/pCampBot.cs +++ b/OpenSim/Tools/pCampBot/pCampBot.cs @@ -56,7 +56,7 @@ public class pCampBot [STAThread] public static void Main(string[] args) { - XmlConfigurator.Configure(new System.IO.FileInfo("pCampBot.exe.config")); + XmlConfigurator.Configure(new System.IO.FileInfo("pCampBot.dll.config")); IConfig commandLineConfig = ParseConfig(args); if (commandLineConfig.Get("help") != null || commandLineConfig.Get("loginuri") == null) diff --git a/bin/log4net.xml b/bin/log4net.xml index ac8ed2c681b..fcbc59d210a 100755 --- a/bin/log4net.xml +++ b/bin/log4net.xml @@ -8802,7 +8802,7 @@ The log4net configuration file can possible be specified in the application's - configuration file (either MyAppName.exe.config for a + configuration file (either MyAppName.dll.config for a normal application on Web.config for an ASP.NET application). @@ -8867,7 +8867,7 @@ The log4net configuration file can possible be specified in the application's - configuration file (either MyAppName.exe.config for a + configuration file (either MyAppName.dll.config for a normal application on Web.config for an ASP.NET application). @@ -9367,7 +9367,7 @@ The log4net configuration file can possible be specified in the application's - configuration file (either MyAppName.exe.config for a + configuration file (either MyAppName.dll.config for a normal application on Web.config for an ASP.NET application). @@ -9465,7 +9465,7 @@ The log4net configuration file can possible be specified in the application's - configuration file (either MyAppName.exe.config for a + configuration file (either MyAppName.dll.config for a normal application on Web.config for an ASP.NET application).