30#ifndef ROOT_TMVA_MsgLogger
31#define ROOT_TMVA_MsgLogger
46#if __cplusplus > 199711L
64 MsgLogger(
const std::string& source, EMsgType minType = kINFO );
95 *(std::ostringstream*)
this << arg;
116#if __cplusplus > 199711L
120 static std::atomic<const std::map<EMsgType, std::string>*>
fgTypeMap;
121 static std::atomic<const std::map<EMsgType, std::string>*>
fgColorMap;
126 static const std::map<EMsgType, std::string>*
fgTypeMap;
#define ClassDef(name, id)
ostringstream derivative to redirect and format output
void SetMinType(EMsgType minType)
static const UInt_t fgMaxSourceSize
static Bool_t fgOutputSupressed
static const std::string fgPrefix
MsgLogger(const TObject *source, EMsgType minType=kINFO)
constructor
void SetSource(const std::string &source)
MsgLogger & operator=(const MsgLogger &parent)
assignment operator
std::string GetPrintedSource() const
the full logger prefix
MsgLogger & operator<<(MsgLogger &(*_f)(MsgLogger &))
static void InhibitOutput()
const TObject * fObjSource
static const std::string fgSuffix
static void EnableOutput()
static const std::map< EMsgType, std::string > * fgTypeMap
static UInt_t GetMaxSourceSize()
std::string GetSource() const
std::string GetFormattedSource() const
make sure the source name is no longer than fgMaxSourceSize:
static Bool_t fgInhibitOutput
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 const std::map< EMsgType, std::string > * fgColorMap
void Send()
activates the logger writer
EMsgType GetMinType() const
Mother of all ROOT objects.
create variable transformations
MsgLogger & Endl(MsgLogger &ml)