Switch to QT Category logging (#2206)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "LoggingChannel.hpp"
|
||||
|
||||
#include "Application.hpp"
|
||||
#include "common/QLogging.hpp"
|
||||
#include "singletons/Paths.hpp"
|
||||
#include "singletons/Settings.hpp"
|
||||
|
||||
@@ -63,13 +64,13 @@ void LoggingChannel::openLogFile()
|
||||
|
||||
if (!QDir().mkpath(directory))
|
||||
{
|
||||
qDebug() << "Unable to create logging path";
|
||||
qCDebug(chatterinoHelper) << "Unable to create logging path";
|
||||
return;
|
||||
}
|
||||
|
||||
// Open file handle to log file of current date
|
||||
QString fileName = directory + QDir::separator() + baseFileName;
|
||||
qDebug() << "Logging to" << fileName;
|
||||
qCDebug(chatterinoHelper) << "Logging to" << fileName;
|
||||
this->fileHandle.setFileName(fileName);
|
||||
|
||||
this->fileHandle.open(QIODevice::Append);
|
||||
|
||||
Reference in New Issue
Block a user