From 3751aea08b66e8268fa8871a2203d57312333cf1 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Fri, 1 Jun 2012 15:21:12 -0700 Subject: [PATCH] Add a ref function to do what people abuse flush to do. --- src/Log.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Log.h b/src/Log.h index e226d3bf53..bb5bbc14fb 100644 --- a/src/Log.h +++ b/src/Log.h @@ -39,6 +39,11 @@ public: return oss << t; } + std::ostringstream& ref(void) const + { + return oss; + } + static void setMinSeverity(LogSeverity); };