diff --git a/core/DapLogger.cpp b/core/DapLogger.cpp
index f2043101c663974c1861830904c7add90ddb52c1..068656e642d5dbd1e1b4cc82c74c14dc9fafc0af 100644
--- a/core/DapLogger.cpp
+++ b/core/DapLogger.cpp
@@ -142,7 +142,7 @@ void DapLogger::setLogFile(const QString& fileName)
         dap_common_deinit();
 
     m_pathToFile = getPathToLog() + "/" + fileName;
-    dap_common_init(DAP_BRAND, qPrintable(m_pathToFile));
+    dap_common_init(DAP_BRAND, qPrintable(m_pathToFile), qPrintable(getPathToLog()));
 
     isLoggerStarted = true;
 }