SCRATCH nuke the overcomplicated logger, use a simple one.

This commit is contained in:
Petr Mrázek
2015-02-02 02:14:14 +01:00
parent 28a39ef7ac
commit cd9d37aac4
71 changed files with 415 additions and 934 deletions

View File

@@ -2,11 +2,12 @@
#include <QApplication>
#include <memory>
#include "logger/QsLog.h"
#include "logger/QsLogDest.h"
#include <QDebug>
#include <QFlag>
#include <QIcon>
#include <QDateTime>
class QFile;
class MinecraftVersionList;
class LWJGLVersionList;
class HttpMetaCache;
@@ -62,7 +63,10 @@ public:
return m_settings;
}
qint64 timeSinceStart() const
{
return startTime.msecsTo(QDateTime::currentDateTime());
}
QIcon getThemedIcon(const QString& name);
@@ -153,6 +157,8 @@ private:
friend class UpdateCheckerTest;
friend class DownloadUpdateTaskTest;
QDateTime startTime;
std::shared_ptr<QTranslator> m_qt_translator;
std::shared_ptr<QTranslator> m_mmc_translator;
std::shared_ptr<SettingsObject> m_settings;
@@ -169,9 +175,6 @@ private:
QMap<QString, std::shared_ptr<BaseProfilerFactory>> m_profilers;
QMap<QString, std::shared_ptr<BaseDetachedToolFactory>> m_tools;
QsLogging::DestinationPtr m_fileDestination;
QsLogging::DestinationPtr m_debugDestination;
QString m_updateOnExitPath;
UpdateFlags m_updateOnExitFlags = None;
@@ -180,4 +183,6 @@ private:
QString dataPath;
Status m_status = MultiMC::Failed;
public:
std::shared_ptr<QFile> logFile;
};