m_Stream = NULL;
m_OwnsStream = false;
m_Tty = false;
-
- m_FlushLogTimer = boost::make_shared<Timer>();
- m_FlushLogTimer->SetInterval(1);
- m_FlushLogTimer->OnTimerExpired.connect(boost::bind(&StreamLogger::FlushLogTimerHandler, this));
- m_FlushLogTimer->Start();
}
/**
void StreamLogger::FlushLogTimerHandler(void)
{
- if (m_OwnsStream && m_Stream)
- m_Stream->flush();
+ m_Stream->flush();
}
void StreamLogger::BindStream(std::ostream *stream, bool ownsStream)
m_Stream = stream;
m_OwnsStream = ownsStream;
m_Tty = IsTty(*stream);
+
+ m_FlushLogTimer = boost::make_shared<Timer>();
+ m_FlushLogTimer->SetInterval(1);
+ m_FlushLogTimer->OnTimerExpired.connect(boost::bind(&StreamLogger::FlushLogTimerHandler, this));
+ m_FlushLogTimer->Start();
}
/**