Log Viewer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

19 lines
624 B

#include "viewmodel/displayString/SimpleLevelDisplay.h"
#include <QMap>
/*************************************************************************************************/
QString SimpleLevelDisplay::provideString(const Log_ptr& log)
{
static QMap<ELogLevel, QString> nameMap{
{ELogLevel::info, "Info"},
{ELogLevel::trace, "Trace"},
{ELogLevel::debug, "Debug"},
{ELogLevel::warning, "Warning"},
{ELogLevel::error, "Error"},
{ELogLevel::fatal, "Fatal"},
{ELogLevel::invalid, "Invalid"}
};
return nameMap.value(log->level.value_or(ELogLevel::invalid));
}