From acfb5051cd328ab21aba5bfc2878ce84d496a7f1 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Mon, 4 May 2009 20:15:39 +0000 Subject: Intermediate commit. WILL NOT COMPILE! --- OpenSim/Region/Application/OpenSim.cs | 10 ++++++++++ OpenSim/Region/Application/OpenSimBase.cs | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Application') diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index 5ba377b..8f4eba8 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs @@ -74,6 +74,16 @@ namespace OpenSim m_gui = startupConfig.GetBoolean("gui", false); m_timedScript = startupConfig.GetString("timer_Script", "disabled"); + if (m_logFileAppender != null) + { + if (m_logFileAppender is log4net.Appender.FileAppender) + { + log4net.Appender.FileAppender appender = + (log4net.Appender.FileAppender)m_logFileAppender; + appender.File = startupConfig.GetString("LogFile", "OpenSim.log"); + m_log.InfoFormat("[LOGGING] Logging started to file {0}", appender.File); + } + } } } diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs index af7b707..21fd5dd 100644 --- a/OpenSim/Region/Application/OpenSimBase.cs +++ b/OpenSim/Region/Application/OpenSimBase.cs @@ -40,7 +40,7 @@ using OpenSim.Framework.Communications.Services; using OpenSim.Framework.Communications.Cache; using OpenSim.Framework.Console; using OpenSim.Framework.Servers; -using OpenSim.Framework.Servers.Interfaces; +using OpenSim.Framework.Servers.HttpServer; using OpenSim.Framework.Statistics; using OpenSim.Region.ClientStack; using OpenSim.Region.Framework; -- cgit v1.1