summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/log
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/log')
-rw-r--r--cpp/src/qpid/log/Logger.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/qpid/log/Logger.cpp b/cpp/src/qpid/log/Logger.cpp
index 84096f7e58..30cec2f0f7 100644
--- a/cpp/src/qpid/log/Logger.cpp
+++ b/cpp/src/qpid/log/Logger.cpp
@@ -48,7 +48,8 @@ struct OstreamOutput : public Logger::Output {
OstreamOutput(std::ostream& o) : out(&o) {}
OstreamOutput(const string& file)
- : out(new ofstream(file.c_str())), mine(out)
+ : out(new ofstream(file.c_str(), ios_base::out | ios_base::app)),
+ mine(out)
{
if (!out->good())
throw std::runtime_error("Can't open log file: "+file);