19 #ifndef OST_LOG_SINK_HH
20 #define OST_LOG_SINK_HH
29 #include <boost/shared_ptr.hpp>
52 std::ostream& stream_;
67 std::ostringstream stream_;
76 if (stream_.is_open()){
86 std::ofstream stream_;
99 std::vector<LogSinkPtr> sinks_;
FileLogSink(const String &file_name)
virtual void LogMessage(const String &message, int severity)
virtual void LogMessage(const String &message, int severity=0)
bool AddSink(LogSinkPtr &observer)
void LogMessage(const String &message, int severity)
bool RemoveSink(LogSinkPtr &observer)
virtual void LogMessage(const String &message, int severity)
StreamLogSink(std::ostream &stream)
virtual void LogMessage(const String &message, int severity)
#define DLLEXPORT_OST_BASE
boost::shared_ptr< StringLogSink > StringLogSinkPtr
boost::shared_ptr< FileLogSink > FileLogSinkPtr
boost::shared_ptr< MultiLogSink > MultiLogSinkPtr
boost::shared_ptr< LogSink > LogSinkPtr