summaryrefslogtreecommitdiffstats
path: root/raul/log.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'raul/log.hpp')
-rw-r--r--raul/log.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/raul/log.hpp b/raul/log.hpp
index d121290..4dbf069 100644
--- a/raul/log.hpp
+++ b/raul/log.hpp
@@ -46,8 +46,8 @@ public:
LogBuffer(const char* prefix="", Colour colour=DEFAULT)
: _prefix(prefix)
- , _colour(colour)
, _out(std::cout)
+ , _colour(colour)
{}
/** Change the colour of the output, e.g. out << colour(RED) << "red" << endl; */
@@ -75,10 +75,10 @@ protected:
private:
void emit();
- const char* _prefix;
- Colour _colour;
+ std::string _prefix;
std::string _line;
std::ostream& _out;
+ Colour _colour;
};
class NullBuffer : public std::streambuf