ModErn Text Analysis
META Enumerates Textual Applications
Classes | Functions
meta::logging Namespace Reference

Namespace which contains all of the logging interface classes. More...

Classes

class  logger
 logger: Main logging class. More...
 

Functions

loggerget_logger ()
 
void add_sink (const logger::sink &s)
 Adds a sink to a static instance of a logger. More...
 
void add_sink (logger::sink &&s)
 Adds a sink to a static instance of a logger. More...
 
void set_cerr_logging (logging::logger::severity_level sev=logging::logger::severity_level::trace)
 Sets up default logging to cerr. More...
 

Detailed Description

Namespace which contains all of the logging interface classes.

Function Documentation

§ get_logger()

logger& meta::logging::get_logger ( )
inline
Returns
a static instance of a logger

§ add_sink() [1/2]

void meta::logging::add_sink ( const logger::sink s)
inline

Adds a sink to a static instance of a logger.

Parameters
sThe sink to add to the static logger instance

§ add_sink() [2/2]

void meta::logging::add_sink ( logger::sink &&  s)
inline

Adds a sink to a static instance of a logger.

Parameters
sThe sink to add to the static logger instance

§ set_cerr_logging()

void meta::logging::set_cerr_logging ( logging::logger::severity_level  sev = logging::logger::severity_level::trace)
inline

Sets up default logging to cerr.

Useful for a lot of the demo apps to reduce verbosity in setup.

Parameters
sevThe severity level below which to filter out (defaults to trace)