mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-13 05:37:42 +02:00
feat(logs): parse log4j xml events in logs
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
@ -43,6 +43,7 @@
|
||||
#include "LaunchStep.h"
|
||||
#include "LogModel.h"
|
||||
#include "MessageLevel.h"
|
||||
#include "logs/LogParser.h"
|
||||
|
||||
class LaunchTask : public Task {
|
||||
Q_OBJECT
|
||||
@ -114,6 +115,9 @@ class LaunchTask : public Task {
|
||||
private: /*methods */
|
||||
void finalizeSteps(bool successful, const QString& error);
|
||||
|
||||
protected:
|
||||
bool parseXmlLogs(QString const& line, MessageLevel::Enum level);
|
||||
|
||||
protected: /* data */
|
||||
MinecraftInstancePtr m_instance;
|
||||
shared_qobject_ptr<LogModel> m_logModel;
|
||||
@ -122,4 +126,6 @@ class LaunchTask : public Task {
|
||||
int currentStep = -1;
|
||||
State state = NotStarted;
|
||||
qint64 m_pid = -1;
|
||||
LogParser m_stdoutParser;
|
||||
LogParser m_stderrParser;
|
||||
};
|
||||
|
Reference in New Issue
Block a user