##

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()

Buffer | ( | LogType | _type,
|  | int | _color
| ) |  |

Constructor.

Parameters

  [in] | _type | Output destination type (STDOUT, or STDERR)
  [in] | _color | Color of the output stream.

## ~Buffer()

virtual ~Buffer | ( |  | ) |

virtual

Destructor.

## Member Function Documentation

## sync()

virtual int sync | ( |  | ) |

virtual

Sync the stream (output the string buffer contents).

Returns
  Return 0 on success.

## Member Data Documentation

## color

int color

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

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

## type

LogType type

Destination type for the messages.

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

- Console.hh