ONE - On-device Neural Engine
Loading...
Searching...
No Matches
hermes Namespace Reference

Data Structures

struct  Config
 Top-level configuration interface. More...
 
struct  ConsoleReporter
 Print messages into standard console. More...
 
class  Context
 Logging controller. More...
 
class  EnvConfig
 
class  EnvConfig< EnvFormat::BooleanNumber >
 
class  Filter
 
class  Limit
 
class  Message
 Message with metadata. More...
 
class  MessageBuffer
 A buffer for a message under construction. More...
 
struct  MessageBus
 A bridge between Source and Sink. More...
 
class  MessageText
 Mutie-line text message. More...
 
class  Severity
 
struct  Sink
 Message consumer interface. More...
 
class  Source
 Message Source. More...
 
class  SourceSetting
 

Typedefs

using EnvName = std::string
 

Enumerations

enum class  EnvFormat { BooleanNumber }
 
enum  SeverityCategory : uint16_t {
  FATAL = 0 , ERROR = 1 , WARN = 2 , INFO = 3 ,
  VERBOSE = 4
}
 

Functions

Severity fatal (void)
 
Severity error (void)
 
Severity warn (void)
 
Severity info (void)
 
Severity verbose (uint16_t level)
 

Typedef Documentation

◆ EnvName

using hermes::EnvName = typedef std::string

Definition at line 27 of file EnvConfig.h.

Enumeration Type Documentation

◆ EnvFormat

enum class hermes::EnvFormat
strong
Enumerator
BooleanNumber 

Definition at line 29 of file EnvConfig.h.

30{
31 // Non-zero -> Enable
32 // Zero -> Diable
34};

◆ SeverityCategory

enum hermes::SeverityCategory : uint16_t

FATAL > ERROR > WARN > INFO > VERBOSE

Hermes deliberately declares SeverityCategory as "enum" (instead of "enum class") in order to reduce namespace nesting.

Enumerator
FATAL 
ERROR 
WARN 
INFO 
VERBOSE 

Definition at line 31 of file Severity.h.

32{
33 FATAL = 0,
34 ERROR = 1,
35 WARN = 2,
36 INFO = 3,
37 VERBOSE = 4,
38};
#define INFO(name)
Definition Log.h:68
#define WARN(name)
Definition Log.h:70
#define VERBOSE(name, lv)
Definition Log.h:71
@ FATAL
Definition Severity.h:33
@ ERROR
Definition Severity.h:34

Function Documentation

◆ error()

Severity hermes::error ( void  )
inline

Definition at line 76 of file Severity.h.

76{ return Severity{ERROR, 0}; }

◆ fatal()

Severity hermes::fatal ( void  )
inline

Definition at line 75 of file Severity.h.

75{ return Severity{FATAL, 0}; }

◆ info()

Severity hermes::info ( void  )
inline

Definition at line 78 of file Severity.h.

78{ return Severity{INFO, 0}; }

References INFO.

◆ verbose()

Severity hermes::verbose ( uint16_t  level)
inline

Definition at line 79 of file Severity.h.

79{ return Severity{VERBOSE, level}; }

◆ warn()

Severity hermes::warn ( void  )
inline

Definition at line 77 of file Severity.h.

77{ return Severity{WARN, 0}; }