From 599a6d32eebc451f9284db8e6abf2946f236d5e9 Mon Sep 17 00:00:00 2001 From: Brian McBee Date: Fri, 3 Aug 2007 18:01:55 +0000 Subject: Changes to prepare for future possible configuration of separate logdir, configdir, datadir. --- OpenSim/Grid/UserServer/Main.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'OpenSim/Grid/UserServer') diff --git a/OpenSim/Grid/UserServer/Main.cs b/OpenSim/Grid/UserServer/Main.cs index 32d8da9..04f45b0 100644 --- a/OpenSim/Grid/UserServer/Main.cs +++ b/OpenSim/Grid/UserServer/Main.cs @@ -28,6 +28,7 @@ using System; using System.Collections.Generic; +using System.IO; using System.Reflection; using libsecondlife; using OpenSim.Framework.Console; @@ -64,7 +65,11 @@ namespace OpenSim.Grid.UserServer private OpenUser_Main() { - m_console = new LogBase("opengrid-userserver-console.log", "OpenUser", this , false); + if (!Directory.Exists(Util.logDir())) + { + Directory.CreateDirectory(Util.logDir()); + } + m_console = new LogBase((Path.Combine(Util.logDir(),"opengrid-userserver-console.log")), "OpenUser", this , false); MainLog.Instance = m_console; } @@ -80,7 +85,7 @@ namespace OpenSim.Grid.UserServer public void Startup() { - this.Cfg = new UserConfig("USER SERVER", "UserServer_Config.xml"); + this.Cfg = new UserConfig("USER SERVER", (Path.Combine(Util.configDir(), "UserServer_Config.xml"))); MainLog.Instance.Verbose("Main.cs:Startup() - Establishing data connection"); m_userManager = new UserManager(); -- cgit v1.1