12 #ifndef _RDLOG_H_29JUNE2005_ 13 #define _RDLOG_H_29JUNE2005_ 17 #include <boost/iostreams/tee.hpp> 18 #include <boost/iostreams/stream.hpp> 24 typedef boost::iostreams::tee_device<std::ostream, std::ostream>
RDTee;
35 rdLogger(std::ostream *dest,
bool owner =
false)
47 tee =
new RDTee(*dp_dest, stream);
88 #define BOOST_LOG(__arg__) \ 89 if ((__arg__) && (__arg__->dp_dest) && (__arg__->df_enabled)) \ 90 RDLog::toStream((__arg__->teestream) ? *(__arg__->teestream) \ 91 : *(__arg__->dp_dest)) 101 #define BOOST_LOG_NO_LIB 102 #include <boost/log/log.hpp> RDKIT_RDGENERAL_EXPORT boost::logging::rdLogger * rdErrorLog
void SetTee(std::ostream &stream)
Sets a stream to tee the output to.
#define RDKIT_RDGENERAL_EXPORT
RDKIT_RDGENERAL_EXPORT boost::logging::rdLogger * rdDebugLog
RDKIT_RDGENERAL_EXPORT boost::logging::rdLogger * rdAppLog
rdLogger(std::ostream *dest, bool owner=false)
boost::iostreams::stream< RDTee > RDTeeStream
boost::iostreams::tee_device< std::ostream, std::ostream > RDTee
RDKIT_RDGENERAL_EXPORT void disable_logs(const char *arg)
RDKIT_RDGENERAL_EXPORT std::ostream & toStream(std::ostream &)
RDKIT_RDGENERAL_EXPORT void InitLogs()
RDKIT_RDGENERAL_EXPORT boost::logging::rdLogger * rdStatusLog
RDKIT_RDGENERAL_EXPORT void enable_logs(const char *arg)
RDKIT_RDGENERAL_EXPORT boost::logging::rdLogger * rdWarningLog
void ClearTee()
Remove our tee if it's set.
RDKIT_RDGENERAL_EXPORT boost::logging::rdLogger * rdInfoLog