summaryrefslogtreecommitdiffstats
path: root/api/logic/MessageLevel.h
blob: 0128148d0a872d1aa2a2d3badc68316c0c67f94d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once

#include <QString>

/**
 * @brief the MessageLevel Enum
 * defines what level a log message is
 */
namespace MessageLevel
{
enum Enum
{
	Unknown, /**< No idea what this is or where it came from */
	StdOut,  /**< Undetermined stderr messages */
	StdErr,  /**< Undetermined stdout messages */
	MultiMC, /**< MultiMC Messages */
	Debug,   /**< Debug Messages */
	Info,    /**< Info Messages */
	Message, /**< Standard Messages */
	Warning, /**< Warnings */
	Error,   /**< Errors */
	Fatal,   /**< Fatal Errors */
};
MessageLevel::Enum getLevel(const QString &levelName);

/* Get message level from a line. Line is modified if it was successful. */
MessageLevel::Enum fromLine(QString &line);
}