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_;
97 void LogMessage(
const String& message,
int severity);
99 std::vector<LogSinkPtr> sinks_;
boost::shared_ptr< FileLogSink > FileLogSinkPtr
virtual void LogMessage(const String &message, int severity)
FileLogSink(const String &file_name)
StreamLogSink(std::ostream &stream)
boost::shared_ptr< MultiLogSink > MultiLogSinkPtr
boost::shared_ptr< StringLogSink > StringLogSinkPtr
virtual void LogMessage(const String &message, int severity)
#define DLLEXPORT_OST_BASE
virtual void LogMessage(const String &message, int severity)
virtual void LogMessage(const String &message, int severity=0)
boost::shared_ptr< LogSink > LogSinkPtr