aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xOpenSim/Framework/Console/LocalConsole.cs4
-rw-r--r--OpenSim/Framework/Util.cs25
2 files changed, 25 insertions, 4 deletions
diff --git a/OpenSim/Framework/Console/LocalConsole.cs b/OpenSim/Framework/Console/LocalConsole.cs
index e1492b8..f84d21c 100755
--- a/OpenSim/Framework/Console/LocalConsole.cs
+++ b/OpenSim/Framework/Console/LocalConsole.cs
@@ -96,9 +96,9 @@ namespace OpenSim.Framework.Console
96 return; 96 return;
97 } 97 }
98 98
99 string m_historyFile = startupConfig.GetString("ConsoleHistoryFile", "OpenSimConsoleHistory.txt"); 99 string m_historyFile = startupConfig.GetString("ConsoleHistoryFile", Path.Combine(Util.logsDir(), "OpenSimConsoleHistory.txt"));
100 int m_historySize = startupConfig.GetInt("ConsoleHistoryFileLines", 100); 100 int m_historySize = startupConfig.GetInt("ConsoleHistoryFileLines", 100);
101 m_historyPath = Path.GetFullPath(Path.Combine(Util.configDir(), m_historyFile)); 101 m_historyPath = Path.GetFullPath(m_historyFile);
102 m_historytimestamps = startupConfig.GetBoolean("ConsoleHistoryTimeStamp", false); 102 m_historytimestamps = startupConfig.GetBoolean("ConsoleHistoryTimeStamp", false);
103 m_log.InfoFormat("[LOCAL CONSOLE]: Persistent command line history is Enabled, up to {0} lines from file {1} {2} timestamps", 103 m_log.InfoFormat("[LOCAL CONSOLE]: Persistent command line history is Enabled, up to {0} lines from file {1} {2} timestamps",
104 m_historySize, m_historyPath, m_historytimestamps?"with":"without"); 104 m_historySize, m_historyPath, m_historytimestamps?"with":"without");
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs
index e0e35db..cc449af 100644
--- a/OpenSim/Framework/Util.cs
+++ b/OpenSim/Framework/Util.cs
@@ -1304,8 +1304,19 @@ namespace OpenSim.Framework
1304 return Path.Combine(configDir(), "inventory"); 1304 return Path.Combine(configDir(), "inventory");
1305 } 1305 }
1306 1306
1307 public static string dbDir()
1308 {
1309 return Path.Combine("..", Path.Combine("..", "db"));
1310 }
1311
1312 public static string cacheDir()
1313 {
1314 return Path.Combine("..", Path.Combine("..", "caches"));
1315 }
1316
1307 public static string configDir() 1317 public static string configDir()
1308 { 1318 {
1319// return Path.Combine("..", Path.Combine("..", "config"));
1309 return "."; 1320 return ".";
1310 } 1321 }
1311 1322
@@ -1314,6 +1325,16 @@ namespace OpenSim.Framework
1314 return "."; 1325 return ".";
1315 } 1326 }
1316 1327
1328 public static string logsDir()
1329 {
1330 return Path.Combine("..", "logs");
1331 }
1332
1333 public static string webDir()
1334 {
1335 return Path.Combine("..", Path.Combine("..", "web"));
1336 }
1337
1317 public static string logFile() 1338 public static string logFile()
1318 { 1339 {
1319 foreach (IAppender appender in LogManager.GetRepository().GetAppenders()) 1340 foreach (IAppender appender in LogManager.GetRepository().GetAppenders())
@@ -1324,7 +1345,7 @@ namespace OpenSim.Framework
1324 } 1345 }
1325 } 1346 }
1326 1347
1327 return "./OpenSim.log"; 1348 return Path.Combine(logsDir(), "OpenSim.log");
1328 } 1349 }
1329 1350
1330 public static string statsLogFile() 1351 public static string statsLogFile()
@@ -1337,7 +1358,7 @@ namespace OpenSim.Framework
1337 } 1358 }
1338 } 1359 }
1339 1360
1340 return "./OpenSimStats.log"; 1361 return Path.Combine(logsDir(), "OpenSimStats.log");
1341 } 1362 }
1342 1363
1343 public static string logDir() 1364 public static string logDir()