mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-27 12:15:26 +00:00
29 lines
705 B
C++
29 lines
705 B
C++
#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);
|
|
}
|