refs #865, make log directory available for blackmisc

This commit is contained in:
Klaus Basan
2017-01-24 20:29:43 +01:00
committed by Mathew Sutcliffe
parent 68dccbefa6
commit 301db27945
4 changed files with 27 additions and 8 deletions

View File

@@ -639,11 +639,7 @@ namespace BlackCore
CLogHandler::instance()->install(); // make sure we have a log handler!
// File logger
static const QString logPath = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) +
"/org.swift-project/" +
CDirectoryUtils::normalizedApplicationDirectory() +
"/logs";
this->m_fileLogger.reset(new CFileLogger(executable(), logPath));
this->m_fileLogger.reset(new CFileLogger(executable(), CDirectoryUtils::getLogDirectory()));
this->m_fileLogger->changeLogPattern(CLogPattern().withSeverityAtOrAbove(CStatusMessage::SeverityDebug));
}