00001 #ifndef QPID_LOG_OSTREAMOUTPUT_H
00002 #define QPID_LOG_OSTREAMOUTPUT_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #include "Logger.h"
00016 #include <boost/scoped_ptr.hpp>
00017 #include <fstream>
00018 #include <ostream>
00019
00020 namespace qpid {
00021 namespace log {
00022
00027 class OstreamOutput : public qpid::log::Logger::Output {
00028 public:
00029 OstreamOutput(std::ostream& o);
00030 OstreamOutput(const std::string& file);
00031
00032 virtual void log(const Statement&, const std::string& m);
00033
00034 private:
00035 std::ostream* out;
00036 boost::scoped_ptr<std::ostream> mine;
00037 };
00038
00039 }}
00040
00041 #endif