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

A streambuf class specialized for logging. More...

Inheritance diagram for logbuff:

Public Member Functions

 logbuff ()
 default constructor
 
 logbuff (csr)
 constructor for named log
 
virtual ~logbuff ()
 destructor
 
void severity (Severity s)
 set severity
 

Protected Member Functions

void init ()
 initialize using details from the XINI config
 
int flushBuffer ()
 
virtual int overflow (int c)
 
virtual int sync ()
 

Protected Attributes

char buffer [bufferSize]
 message collected into here
 
Severity sev
 the current severity level
 
loggermLogger
 thing for writing the message
 
string name
 name to use in the XINI configuration
 

Static Protected Attributes

static const int bufferSize = 128
 limit line size in log files.
 

Detailed Description

A streambuf class specialized for logging.

This is a private implementation class.

Member Function Documentation

int logbuff::flushBuffer ( )
protected

we have a line for the log - we now delegate this to the log function that has been selected by the user.

int logbuff::overflow ( int  c)
protectedvirtual

this gets called when the buffer fills. Since we are writing to a log file, this happens whenever the line length exceeds the buffer size.

int logbuff::sync ( )
protectedvirtual

this gets called when 'endl' or 'flush' is called on the stream.


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