vg
tools for working with variation graphs
Public Member Functions | Private Attributes | List of all members
vg::Logger Class Reference

#include <log.hpp>

Public Member Functions

 Logger (const std::string &context)
 
cerrWrapper info () const
 Log to cerr with a standard format. More...
 
cerrWrapper warn () const
 Emit a warning with a standard format. More...
 
cerrWrapper error () const
 

Private Attributes

std::string context
 

Detailed Description

Class to set up at the start of a file when you want to generate a bunch of loggers

Constructor & Destructor Documentation

◆ Logger()

vg::Logger::Logger ( const std::string &  context)
inline

Member Function Documentation

◆ error()

cerrWrapper vg::Logger::error ( ) const
inline

Error AND EXIT with a standard format Once the cerrWrapper goes out of scope, the program will exit with an error code.

◆ info()

cerrWrapper vg::Logger::info ( ) const
inline

Log to cerr with a standard format.

◆ warn()

cerrWrapper vg::Logger::warn ( ) const
inline

Emit a warning with a standard format.

Member Data Documentation

◆ context

std::string vg::Logger::context
private

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