Skip to content

Commit

Permalink
Look for default config files in dll.config instead of exe.config bec…
Browse files Browse the repository at this point in the history
…ause of dotnet changes.
  • Loading branch information
mdickson committed Jun 23, 2024
1 parent 32b2123 commit 127fee1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions OpenSim/Region/Application/Application.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion OpenSim/Server/Base/ServicesServerBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion OpenSim/Tools/pCampBot/pCampBot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 4 additions & 4 deletions bin/log4net.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8802,7 +8802,7 @@
</para>
<para>
The log4net configuration file can possible be specified in the application's
configuration file (either <c>MyAppName.exe.config</c> for a
configuration file (either <c>MyAppName.dll.config</c> for a
normal application on <c>Web.config</c> for an ASP.NET application).
</para>
<example>
Expand Down Expand Up @@ -8867,7 +8867,7 @@
</para>
<para>
The log4net configuration file can possible be specified in the application's
configuration file (either <c>MyAppName.exe.config</c> for a
configuration file (either <c>MyAppName.dll.config</c> for a
normal application on <c>Web.config</c> for an ASP.NET application).
</para>
<example>
Expand Down Expand Up @@ -9367,7 +9367,7 @@
</para>
<para>
The log4net configuration file can possible be specified in the application's
configuration file (either <c>MyAppName.exe.config</c> for a
configuration file (either <c>MyAppName.dll.config</c> for a
normal application on <c>Web.config</c> for an ASP.NET application).
</para>
<para>
Expand Down Expand Up @@ -9465,7 +9465,7 @@
</para>
<para>
The log4net configuration file can possible be specified in the application's
configuration file (either <c>MyAppName.exe.config</c> for a
configuration file (either <c>MyAppName.dll.config</c> for a
normal application on <c>Web.config</c> for an ASP.NET application).
</para>
<para>
Expand Down

0 comments on commit 127fee1

Please sign in to comment.