Spicy
Public Member Functions | Static Public Member Functions | List of all members
hilti::logging::DebugStream Class Reference

#include <logger.h>

Public Member Functions

 DebugStream (const std::string &name)
 
bool operator< (const DebugStream &other) const
 
auto name () const
 

Static Public Member Functions

static std::vector< std::string > all ()
 
static const auto & streamForName (const std::string &s)
 

Detailed Description

A named debug stream. Debugging output can be send to it and will be written out during runtime by the Logger if it has enabled the stream.

Constructor & Destructor Documentation

◆ DebugStream()

logging::DebugStream::DebugStream ( const std::string &  name)
explicit
Parameters
namename of the stream, which must be unique across all stream

Member Function Documentation

◆ all()

std::vector< std::string > logging::DebugStream::all ( )
static

Returns the names of all available debug streams.

◆ streamForName()

static const auto& hilti::logging::DebugStream::streamForName ( const std::string &  s)
inlinestatic

Returns the stream for a given name. The stream must exist.


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