diff --git a/CmisSync.Lib/Config.cs b/CmisSync.Lib/Config.cs index 0f223d3b0..991a411ea 100755 --- a/CmisSync.Lib/Config.cs +++ b/CmisSync.Lib/Config.cs @@ -342,7 +342,9 @@ public void RemoveFolder(string repoName) /// public string GetLogFilePath() { - return Path.Combine(ConfigPath, "CmisSync_log.txt"); + XmlNode appender = configXml.Log4Net.SelectSingleNode("appender"); + XmlNode file = appender.SelectSingleNode("file"); + return file.Attributes["value"].Value; } private string GetLogLevel() diff --git a/CmisSync.Lib/ConfigManager.cs b/CmisSync.Lib/ConfigManager.cs index 15edf86a9..1fbfd77f0 100755 --- a/CmisSync.Lib/ConfigManager.cs +++ b/CmisSync.Lib/ConfigManager.cs @@ -65,7 +65,7 @@ public static string CurrentConfigFile } else { - return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "cmissync", "config.xml"); + return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "cmissync", "config.xml"); } }