Logger::Buffer Class Reference

String buffer for the base logger. More...

#include <Console.hh>

Inherits stringbuf.

Public Member Functions

 Buffer (LogType _type, int _color)
 Constructor. More...
 
virtual ~Buffer ()
 Destructor. More...
 
virtual int sync ()
 Sync the stream (output the string buffer contents). More...
 

Public Attributes

int color
 ANSI color code using Select Graphic Rendition parameters (SGR). More...
 
LogType type
 Destination type for the messages. More...
 

Detailed Description

String buffer for the base logger.

Constructor & Destructor Documentation

Buffer ( LogType  _type,
int  _color 
)

Constructor.

Parameters
[in]_typeOutput destination type (STDOUT, or STDERR)
[in]_colorColor of the output stream.
virtual ~Buffer ( )
virtual

Destructor.

Member Function Documentation

virtual int sync ( )
virtual

Sync the stream (output the string buffer contents).

Returns
Return 0 on success.

Member Data Documentation

int color

ANSI color code using Select Graphic Rendition parameters (SGR).

See http://en.wikipedia.org/wiki/ANSI_escape_code#Colors

LogType type

Destination type for the messages.


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