ngscopeclient 0.1-dev+51fbda87c
Files | Classes | Enumerations | Functions
Liblog (logging framework)

Files

file  ColoredSTDLogSink.cpp
 Implementation of ColoredSTDLogSink.
 
file  FILELogSink.cpp
 Implementation of FILELogSink.
 
file  log.cpp
 Implementation of base LogSink class and some global helper functions.
 
file  log.h
 Main logging framework header.
 

Classes

class  LogSink
 Base class for all log sinks. More...
 
class  STDLogSink
 A log sink writing to stdout/stderr depending on severity. More...
 
class  ColoredSTDLogSink
 A STDLogSink that colorizes "warning" or "error" keywords. More...
 
class  FILELogSink
 A log sink writing to a FILE* file handle. More...
 
class  LogIndenter
 RAII wrapper for log indentation. More...
 

Enumerations

enum class  Severity {
  Severity::FATAL = 1 , Severity::ERROR = 2 , Severity::WARNING = 3 , Severity::NOTICE = 4 ,
  Severity::VERBOSE = 5 , Severity::DEBUG = 6
}
 Severity of a logging message. More...
 

Functions

bool ParseLoggerArguments (int &i, int argc, char *argv[], Severity &console_verbosity)
 Helper function for parsing arguments that use common syntax.
 

Detailed Description

Enumeration Type Documentation

◆ Severity

enum class Severity
strong

Severity of a logging message.

Enumerator
FATAL 

State is totally unusable, must exit right now. Aborts the program after printing.

ERROR 

Something went very wrong, an operation may be aborted or state may be confused.

WARNING 

Something went wrong, but we'll attempt to proceed.

NOTICE 

Useful information about progress printed by default.

VERBOSE 

Detailed information end users may sometimes need, but not often.

DEBUG 

Extremely detailed information only useful to people working on application internals.