seqeron 0.18.0
Loading...
Searching...
No Matches
org::limitless::seqeron::util::Logger Namespace Reference

Functions

StderrLoggerSink & defaultSink ()
 
LoggerSink *& installedSink ()
 
void install (LoggerSink &sink)
 Installs the sink every subsequent log() call forwards to.
 
void reset ()
 
void vlog (const Component component, const Severity severity, const EventCode code, const char *format, va_list args)
 
void log (const Component component, const Severity severity, const EventCode code, const char *format,...)
 
void info (const Component component, const EventCode code, const char *format,...)
 
void info (const Component component, const char *format,...)
 
void warn (const Component component, const EventCode code, const char *format,...)
 
void error (const Component component, const EventCode code, const char *format,...)
 
void fault (const Component component, const EventCode code, const char *format,...)
 

Function Documentation

◆ defaultSink()

StderrLoggerSink & org::limitless::seqeron::util::Logger::defaultSink ( )
inline

◆ error()

void org::limitless::seqeron::util::Logger::error ( const Component  component,
const EventCode  code,
const char *  format,
  ... 
)
inline

◆ fault()

void org::limitless::seqeron::util::Logger::fault ( const Component  component,
const EventCode  code,
const char *  format,
  ... 
)
inline

◆ info() [1/2]

void org::limitless::seqeron::util::Logger::info ( const Component  component,
const char *  format,
  ... 
)
inline

◆ info() [2/2]

void org::limitless::seqeron::util::Logger::info ( const Component  component,
const EventCode  code,
const char *  format,
  ... 
)
inline

◆ install()

void org::limitless::seqeron::util::Logger::install ( LoggerSink &  sink)
inline

Installs the sink every subsequent log() call forwards to.

Parameters
sinkthe sink; the caller owns its lifetime (e.g. a test's stack-local RecordingDiagnosticSink) and calls reset() before it goes out of scope

◆ installedSink()

LoggerSink *& org::limitless::seqeron::util::Logger::installedSink ( )
inline

◆ log()

void org::limitless::seqeron::util::Logger::log ( const Component  component,
const Severity  severity,
const EventCode  code,
const char *  format,
  ... 
)
inline

◆ reset()

void org::limitless::seqeron::util::Logger::reset ( )
inline

◆ vlog()

void org::limitless::seqeron::util::Logger::vlog ( const Component  component,
const Severity  severity,
const EventCode  code,
const char *  format,
va_list  args 
)
inline

◆ warn()

void org::limitless::seqeron::util::Logger::warn ( const Component  component,
const EventCode  code,
const char *  format,
  ... 
)
inline