![]() |
Project
|
A set of helpers to parse device logs. More...
#include <LogParsingHelpers.h>
Public Types | |
enum struct | LogLevel { Debug , Info , Warning , Alarm , Error , Fatal , Unknown , Size } |
Possible log levels for device log entries. More... | |
Static Public Member Functions | |
static LogLevel | parseTokenLevel (std::string_view const s) |
Static Public Attributes | |
static char const *const | LOG_LEVELS [(int) LogLevel::Size] |
Available log levels. | |
A set of helpers to parse device logs.
Definition at line 21 of file LogParsingHelpers.h.
|
strong |
Possible log levels for device log entries.
Enumerator | |
---|---|
Debug | |
Info | |
Warning | |
Alarm | |
Error | |
Fatal | |
Unknown | |
Size |
Definition at line 23 of file LogParsingHelpers.h.
|
static |
Extract the log style from a log string
s | Token style can then be used for colouring the logs in the GUI or to exit with error if a sufficient number of LogLevel::Error is found. |
Definition at line 27 of file LogParsingHelpers.cxx.
|
static |
Available log levels.
Definition at line 35 of file LogParsingHelpers.h.