30#ifndef ROOT_TMVA_MsgLogger
31#define ROOT_TMVA_MsgLogger
62 MsgLogger(
const std::string& source, EMsgType minType = kINFO );
78 MsgLogger&
operator= (
const MsgLogger& parent );
81 static MsgLogger&
Endmsg( MsgLogger& logger );
84 MsgLogger& operator<< ( MsgLogger& ( *_f )( MsgLogger& ) );
85 MsgLogger& operator<< ( std::ostream& ( *_f )( std::ostream& ) );
86 MsgLogger& operator<< ( std::ios& ( *_f )( std::ios& ) );
92 template <
class T>
MsgLogger& operator<< ( T arg ) {
93 *(std::ostringstream*)
this << arg;
117 static std::atomic<const std::map<EMsgType, std::string>*>
fgTypeMap;
118 static std::atomic<const std::map<EMsgType, std::string>*>
fgColorMap;
#define ClassDef(name, id)
ostringstream derivative to redirect and format output
void SetMinType(EMsgType minType)
static const UInt_t fgMaxSourceSize
static const std::string fgPrefix
void SetSource(const std::string &source)
MsgLogger & operator=(const MsgLogger &parent)
assignment operator
std::string GetPrintedSource() const
the full logger prefix
static std::atomic< Bool_t > fgOutputSupressed
static std::atomic< const std::map< EMsgType, std::string > * > fgColorMap
MsgLogger & operator<<(MsgLogger &(*_f)(MsgLogger &))
static UInt_t GetMaxSourceSize()
returns the maximum source size
static void InhibitOutput()
const TObject * fObjSource
static const std::string fgSuffix
static void EnableOutput()
static std::atomic< const std::map< EMsgType, std::string > * > fgTypeMap
std::string GetSource() const
std::string GetFormattedSource() const
make sure the source name is no longer than fgMaxSourceSize:
void InitMaps()
Create the message type and color maps.
void WriteMsg(EMsgType type, const std::string &line) const
putting the output string, the message type, and the color switcher together into a single string
static MsgLogger & Endmsg(MsgLogger &logger)
end line
static std::atomic< Bool_t > fgInhibitOutput
void Send()
activates the logger writer
EMsgType GetMinType() const
Mother of all ROOT objects.
create variable transformations
MsgLogger & Endl(MsgLogger &ml)