Fixed logs folder being created in non working dir. when running from VS

This commit is contained in:
hondacrx
2017-10-29 10:01:52 -04:00
parent 97b526f022
commit 19d27aa6f1
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -9,9 +9,9 @@
# Description: Logs directory setting.
# Important: LogsDir needs to be quoted, as the string might contain space characters.
# Logs directory must exists, or log file creation will be disabled.
# Default: "" - (Log files will be stored in the current path)
# Default: "Logs" - (Log files will be stored in the current path)
LogsDir = "./Logs"
LogsDir = "Logs"
#
# BattlenetPort
+1 -1
View File
@@ -27,7 +27,7 @@ public class Log
{
static Log()
{
m_logsDir = ConfigMgr.GetDefaultValue("LogsDir", "");
m_logsDir = AppContext.BaseDirectory + ConfigMgr.GetDefaultValue("LogsDir", "");
foreach (var appenderName in ConfigMgr.GetKeysByString("Appender."))
{
+3 -3
View File
@@ -19,16 +19,16 @@ RealmID = 1
# Example: "@prefix@/share/cyphercore"
# Default: "./Data"
DataDir = "."
DataDir = "./Data"
#
# LogsDir
# Description: Logs directory setting.
# Important: LogsDir needs to be quoted, as the string might contain space characters.
# Logs directory must exists, or log file creation will be disabled.
# Default: "./Logs" - (Log files will be stored in the current path)
# Default: "Logs" - (Log files will be stored in the current path)
LogsDir = "./Logs"
LogsDir = "Logs"
#
# LoginDatabaseInfo