Fixed logs folder being created in non working dir. when running from VS
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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."))
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user