 |
RDKit
Open-source cheminformatics and machine learning.
|
Go to the documentation of this file.
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))
107 #define BOOST_LOG_NO_LIB
108 #include <boost/log/log.hpp>
RDKIT_RDGENERAL_EXPORT std::shared_ptr< boost::logging::rdLogger > rdDebugLog
RDKIT_RDGENERAL_EXPORT std::shared_ptr< boost::logging::rdLogger > rdErrorLog
RDKIT_RDGENERAL_EXPORT void disable_logs(const char *arg)
boost::iostreams::stream< RDTee > RDTeeStream
void ClearTee()
Remove our tee if it's set.
boost::iostreams::tee_device< std::ostream, std::ostream > RDTee
void SetTee(std::ostream &stream)
Sets a stream to tee the output to.
RDKIT_RDGENERAL_EXPORT std::shared_ptr< boost::logging::rdLogger > rdAppLog
rdLogger(std::ostream *dest, bool owner=false)
RDKIT_RDGENERAL_EXPORT std::shared_ptr< boost::logging::rdLogger > rdInfoLog
RDKIT_RDGENERAL_EXPORT std::shared_ptr< boost::logging::rdLogger > rdStatusLog
RDKIT_RDGENERAL_EXPORT std::ostream & toStream(std::ostream &)
RDKIT_RDGENERAL_EXPORT std::shared_ptr< boost::logging::rdLogger > rdWarningLog
#define RDKIT_RDGENERAL_EXPORT
RDKIT_RDGENERAL_EXPORT void enable_logs(const char *arg)
RDKIT_RDGENERAL_EXPORT void InitLogs()