VICI  0.11.815
Visual Chart Interpreter
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
VICI::cfi::logstream Class Reference

A stream class specialized for logging. More...

#include <vici/log.h>

Inheritance diagram for VICI::cfi::logstream:

Public Member Functions

virtual ~logstream ()
 destructor
 
void severity (Severity sev)
 Set the severity for the current message. More...
 

Static Public Member Functions

static logstreaminstance ()
 Get an instance of the unnamed stream. More...
 
static logstreaminstance (csr name)
 Get an instance of a named stream. More...
 

Protected Member Functions

 logstream (std::streambuf *buf)
 Static pointer to only instance of the anonymous object. More...
 

Detailed Description

A stream class specialized for logging.

There is an unnamed stream that is the default, and named streams for special purposes. The streams pick up their characteristics from XINI configuration file:

Constructor & Destructor Documentation

logstream::logstream ( std::streambuf *  buf)
protected

Static pointer to only instance of the anonymous object.

Single instances of named streams. Private constructor.

Parameters
bufpointer to a standard stream buffer

Member Function Documentation

logstream & logstream::instance ( )
static

Get an instance of the unnamed stream.

Returns
the instance of the anonymous log stream
logstream & logstream::instance ( csr  name)
static

Get an instance of a named stream.

Parameters
namename of the log stream used in the config file
Returns
the instance of the named log stream
void logstream::severity ( Severity  sev)

Set the severity for the current message.

Parameters
sevnew severity to use for the following messages

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