2015-05-12 01:51:37 +05:30
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief the MessageLevel Enum
|
|
|
|
* defines what level a log message is
|
|
|
|
*/
|
|
|
|
namespace MessageLevel
|
|
|
|
{
|
|
|
|
enum Enum
|
|
|
|
{
|
2018-07-15 18:21:05 +05:30
|
|
|
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 */
|
2015-05-12 01:51:37 +05:30
|
|
|
};
|
|
|
|
MessageLevel::Enum getLevel(const QString &levelName);
|
|
|
|
|
|
|
|
/* Get message level from a line. Line is modified if it was successful. */
|
|
|
|
MessageLevel::Enum fromLine(QString &line);
|
|
|
|
}
|