Project
Loading...
Searching...
No Matches
o2::framework::LogParsingHelpers Struct Reference

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.
 

Detailed Description

A set of helpers to parse device logs.

Definition at line 21 of file LogParsingHelpers.h.

Member Enumeration Documentation

◆ LogLevel

Possible log levels for device log entries.

Enumerator
Debug 
Info 
Warning 
Alarm 
Error 
Fatal 
Unknown 
Size 

Definition at line 23 of file LogParsingHelpers.h.

Member Function Documentation

◆ parseTokenLevel()

LogLevel o2::framework::LogParsingHelpers::parseTokenLevel ( std::string_view const  s)
static

Extract the log style from a log string

Parameters
sToken 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.

Member Data Documentation

◆ LOG_LEVELS

char const *const o2::framework::LogParsingHelpers::LOG_LEVELS
static
Initial value:
= {
"DEBUG",
"INFO",
"WARNING",
"ALARM",
"ERROR",
"FATAL",
"UNKNOWN"}

Available log levels.

Definition at line 35 of file LogParsingHelpers.h.


The documentation for this struct was generated from the following files: