mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-08-12 20:55:39 +08:00
refs #865, make log directory available for blackmisc
This commit is contained in:
committed by
Mathew Sutcliffe
parent
68dccbefa6
commit
301db27945
@@ -14,10 +14,10 @@
|
||||
#include <QCoreApplication>
|
||||
#include <QDir>
|
||||
#include <QRegularExpression>
|
||||
#include <QStandardPaths>
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
|
||||
QString applicationDirectoryPathImpl()
|
||||
{
|
||||
QString appDirectoryString(qApp->applicationDirPath());
|
||||
@@ -49,6 +49,15 @@ namespace BlackMisc
|
||||
return appDir;
|
||||
}
|
||||
|
||||
const QString &CDirectoryUtils::getLogDirectory()
|
||||
{
|
||||
static const QString logPath = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) +
|
||||
"/org.swift-project/" +
|
||||
CDirectoryUtils::normalizedApplicationDirectory() +
|
||||
"/logs";
|
||||
return logPath;
|
||||
}
|
||||
|
||||
} // ns
|
||||
|
||||
//! \endcond
|
||||
|
||||
Reference in New Issue
Block a user