Buffer for (possibly coloured) log printing. More...
#include <log.hpp>
Public Types | |
| enum | Colour {  DEFAULT = 0, RED = 31, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE }  | 
Public Member Functions | |
| LogBuffer (const char *prefix="", Colour colour=DEFAULT) | |
| std::string | colour (Colour c) | 
| Change the colour of the output, e.g.   | |
| std::string | plain () | 
| Reset the colour of the output, e.g.   | |
Protected Member Functions | |
| int_type | overflow (int_type c) | 
| int | sync () | 
Buffer for (possibly coloured) log printing.
| std::string Raul::LogBuffer::colour | ( | Colour | c | ) | 
Change the colour of the output, e.g.
out << colour(RED) << "red" << endl;
| std::string Raul::LogBuffer::plain | ( | ) | 
Reset the colour of the output, e.g.
out << plain() << "plain" << endl;
 1.7.1