2015-05-11 21:21:37 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief the MessageLevel Enum
|
|
|
|
* defines what level a log message is
|
|
|
|
*/
|
2023-08-02 17:35:35 +01:00
|
|
|
namespace MessageLevel {
|
|
|
|
enum Enum {
|
|
|
|
Unknown, /**< No idea what this is or where it came from */
|
|
|
|
StdOut, /**< Undetermined stderr messages */
|
|
|
|
StdErr, /**< Undetermined stdout messages */
|
2021-10-17 23:47:02 +01:00
|
|
|
Launcher, /**< Launcher Messages */
|
2023-08-02 17:35:35 +01:00
|
|
|
Debug, /**< Debug Messages */
|
|
|
|
Info, /**< Info Messages */
|
|
|
|
Message, /**< Standard Messages */
|
|
|
|
Warning, /**< Warnings */
|
|
|
|
Error, /**< Errors */
|
|
|
|
Fatal, /**< Fatal Errors */
|
2015-05-11 21:21:37 +01:00
|
|
|
};
|
2023-08-02 17:35:35 +01:00
|
|
|
MessageLevel::Enum getLevel(const QString& levelName);
|
2015-05-11 21:21:37 +01:00
|
|
|
|
|
|
|
/* Get message level from a line. Line is modified if it was successful. */
|
2023-08-02 17:35:35 +01:00
|
|
|
MessageLevel::Enum fromLine(QString& line);
|
|
|
|
} // namespace MessageLevel
|